From a11eab00cc895eb0d89e924f5298913f2d96db29 Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Mon, 19 Oct 2026 17:08:08 +0530 Subject: [PATCH] Project management automation: Move to tools as an internal action The action only runs in this repository's workflows, so it moves from `packages/` to a private `tools/` workspace, like `pr-meta`. The sources stay JavaScript; the moved files are suppressed for `use-typescript` until they are converted. --- .github/labeler.yml | 4 - .github/workflows/end2end-test.yml | 4 +- .github/workflows/performance.yml | 4 +- .github/workflows/pull-request-automation.yml | 2 +- docs/manifest.json | 6 - package-lock.json | 38 +-- .../CHANGELOG.md | 248 ------------------ .../project-management-automation/README.md | 44 ---- tools/eslint/suppressions.json | 65 +++++ tools/project-management-automation/README.md | 31 +++ .../project-management-automation/action.yml | 0 .../lib/debug.js | 0 .../lib/get-associated-pull-request.js | 0 .../lib/has-wordpress-profile.js | 0 .../lib/index.js | 0 .../lib/tasks/add-milestone/README.md | 0 .../lib/tasks/add-milestone/index.js | 0 .../lib/tasks/add-milestone/test/index.js | 0 .../lib/tasks/assign-fixed-issues/README.md | 0 .../lib/tasks/assign-fixed-issues/index.js | 0 .../tasks/assign-fixed-issues/test/index.js | 0 .../README.md | 0 .../index.js | 0 .../test/index.js | 0 .../first-time-contributor-label/README.md | 0 .../first-time-contributor-label/index.js | 0 .../test/index.js | 0 .../lib/test/get-associated-pull-request.js | 0 .../package.json | 25 +- .../tsconfig.json | 0 tsconfig.build.json | 1 - tsconfig.json | 1 + 32 files changed, 126 insertions(+), 347 deletions(-) delete mode 100644 packages/project-management-automation/CHANGELOG.md delete mode 100644 packages/project-management-automation/README.md create mode 100644 tools/project-management-automation/README.md rename {packages => tools}/project-management-automation/action.yml (100%) rename {packages => tools}/project-management-automation/lib/debug.js (100%) rename {packages => tools}/project-management-automation/lib/get-associated-pull-request.js (100%) rename {packages => tools}/project-management-automation/lib/has-wordpress-profile.js (100%) rename {packages => tools}/project-management-automation/lib/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/add-milestone/README.md (100%) rename {packages => tools}/project-management-automation/lib/tasks/add-milestone/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/add-milestone/test/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/assign-fixed-issues/README.md (100%) rename {packages => tools}/project-management-automation/lib/tasks/assign-fixed-issues/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-account-link/README.md (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-label/README.md (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-label/index.js (100%) rename {packages => tools}/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js (100%) rename {packages => tools}/project-management-automation/lib/test/get-associated-pull-request.js (100%) rename {packages => tools}/project-management-automation/package.json (58%) rename {packages => tools}/project-management-automation/tsconfig.json (100%) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7c99b84ef151b8..c386977243fa96 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -214,10 +214,6 @@ - changed-files: - any-glob-to-any-file: 'packages/private-apis/**' -'[Package] Project management automation': - - changed-files: - - any-glob-to-any-file: 'packages/project-management-automation/**' - '[Package] React i18n': - changed-files: - any-glob-to-any-file: 'packages/react-i18n/**' diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 71983768092783..f9de30126d60c8 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -51,8 +51,8 @@ jobs: - '!test/{integration,performance,php,storybook-playwright,unit}/**' - '!{packages,tools}/**/{test,tests}/**' # Development tooling and its configuration. - - '!packages/{create-block,docgen,eslint-plugin,jest-*,npm-package-json-lint-config,prettier-config,project-management-automation,stylelint-config}/**' - - '!tools/{docs,eslint,stylelint,validation}/**' + - '!packages/{create-block,docgen,eslint-plugin,jest-*,npm-package-json-lint-config,prettier-config,stylelint-config}/**' + - '!tools/{docs,eslint,project-management-automation,stylelint,validation}/**' - '!{eslint,lint-staged,prettier,syncpack}.config*' - '!{phpcs,phpunit}*' # Repository metadata. diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 0f306e749f3496..603ac5893275d6 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -58,10 +58,10 @@ jobs: - '!test/e2e/{*,!(assets)/**}' - '!{packages,tools}/**/{test,tests,stories}/**' # Development tooling and its configuration. - - '!packages/{create-block,docgen,eslint-plugin,jest-*,npm-package-json-lint-config,prettier-config,project-management-automation,stylelint-config}/**' + - '!packages/{create-block,docgen,eslint-plugin,jest-*,npm-package-json-lint-config,prettier-config,stylelint-config}/**' # The mu-plugins and plugins below it load at run time, so they still count. - '!packages/e2e-tests/{*,!(mu-plugins|plugins)/**}' - - '!tools/{docs,eslint,monorepo,stylelint,validation}/**' + - '!tools/{docs,eslint,monorepo,project-management-automation,stylelint,validation}/**' - '!{eslint,lint-staged,prettier,syncpack}.config*' - '!{phpcs,phpunit}*' # Repository metadata. diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index d5e804751e6fcd..4a1753ee14da59 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Node.js and install dependencies uses: ./.github/setup-node - - uses: ./packages/project-management-automation + - uses: ./tools/project-management-automation id: automation with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/manifest.json b/docs/manifest.json index d6d8cc988433f7..5a675799f65a44 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -2705,12 +2705,6 @@ "markdown_source": "../packages/private-apis/README.md", "parent": "packages" }, - { - "title": "@wordpress/project-management-automation", - "slug": "packages-project-management-automation", - "markdown_source": "../packages/project-management-automation/README.md", - "parent": "packages" - }, { "title": "@wordpress/react-i18n", "slug": "packages-react-i18n", diff --git a/package-lock.json b/package-lock.json index 878256476dee99..fea95927a8103e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15571,8 +15571,8 @@ "resolved": "packages/private-apis", "link": true }, - "node_modules/@wordpress/project-management-automation": { - "resolved": "packages/project-management-automation", + "node_modules/@wordpress/project-management-automation-tools": { + "resolved": "tools/project-management-automation", "link": true }, "node_modules/@wordpress/quick-draft-widget": { @@ -47681,23 +47681,6 @@ "node": ">=22.13.0" } }, - "packages/project-management-automation": { - "name": "@wordpress/project-management-automation", - "version": "3.2.0", - "license": "GPL-2.0-or-later", - "dependencies": { - "@actions/core": "^3.0.1", - "@actions/github": "^9.1.1", - "@octokit/openapi-webhooks-types": "^12.1.0" - }, - "devDependencies": { - "@types/node": "^24.13.3", - "vitest": "^5.0.3" - }, - "engines": { - "node": ">=24.18.0" - } - }, "packages/react-i18n": { "name": "@wordpress/react-i18n", "version": "4.57.0", @@ -50097,6 +50080,23 @@ "node": ">=22.13.0" } }, + "tools/project-management-automation": { + "name": "@wordpress/project-management-automation-tools", + "version": "0.0.0", + "license": "GPL-2.0-or-later", + "dependencies": { + "@actions/core": "^3.0.1", + "@actions/github": "^9.1.1", + "@octokit/openapi-webhooks-types": "^12.1.0" + }, + "devDependencies": { + "@types/node": "^24.13.3", + "vitest": "^5.0.3" + }, + "engines": { + "node": ">=24.18.0" + } + }, "tools/react-18": { "name": "@wordpress/react-18", "version": "0.0.0", diff --git a/packages/project-management-automation/CHANGELOG.md b/packages/project-management-automation/CHANGELOG.md deleted file mode 100644 index 28d336eec57f4d..00000000000000 --- a/packages/project-management-automation/CHANGELOG.md +++ /dev/null @@ -1,248 +0,0 @@ - - -## Unreleased - -### Bug Fixes - -- Add a `types` condition to the `.` export, so TypeScript resolves the published declarations under `node16` and `bundler` module resolution ([#84164](https://github.com/WordPress/gutenberg/pull/84164)). -- Declare `@octokit/openapi-webhooks-types` as a dependency, since the published declarations import it ([#84164](https://github.com/WordPress/gutenberg/pull/84164)). - -### Internal - -- Publish only runtime files, dropping `tsconfig.json`, `tsconfig.tsbuildinfo` and the test files from the package ([#84164](https://github.com/WordPress/gutenberg/pull/84164)). - -## 3.2.0 (2026-10-07) - -## 3.1.0 (2026-09-23) - -## 3.0.0 (2026-09-10) - -### Breaking Changes - -- Increase the minimum required Node.js version to 24.18.0 and convert the package to ES modules. It can no longer be loaded with `require()` ([#82663](https://github.com/WordPress/gutenberg/pull/82663)). -- The first-time contributor welcome message is no longer posted as a comment. The action now exposes it as the `welcome-prompt` output ([#82249](https://github.com/WordPress/gutenberg/pull/82249)). -- The first-time contributor account link prompt is no longer posted as a comment. The action now exposes it as the `first-time-contributor-prompt` output, alongside `first-time-contributor-pr-number` for the pull request it belongs to, so the prompt can join the single automation comment maintained by `tools/pr-meta` ([#82249](https://github.com/WordPress/gutenberg/pull/82249)). - -### Internal - -- Run the GitHub Action on the Node 24 runtime. Update `@actions/core` and `@actions/github`, replace the deprecated webhook types package, and remove unused Octokit dependencies ([#82663](https://github.com/WordPress/gutenberg/pull/82663)). -- Remove unused dependency `@octokit/types` ([#82103](https://github.com/WordPress/gutenberg/pull/82103)). - -## 2.54.0 (2026-08-26) - -## 2.53.0 (2026-08-12) - -## 2.52.0 (2026-07-29) - -## 2.51.0 (2026-07-14) - -### Bug Fixes - -- First-time contributor label: detect prior contributions made under a GitHub noreply email so those contributors are no longer mislabeled as first-time contributors ([#79987](https://github.com/WordPress/gutenberg/pull/79987)). - -## 2.50.0 (2026-07-01) - -## 2.49.0 (2026-06-24) - -## 2.48.1 (2026-06-16) - -## 2.48.0 (2026-06-10) - -## 2.47.0 (2026-05-27) - -## 2.46.0 (2026-05-14) - -## 2.45.0 (2026-04-29) - -## 2.44.0 (2026-04-15) - -## 2.43.0 (2026-04-01) - -## 2.42.0 (2026-03-18) - -## 2.41.0 (2026-03-04) - -## 2.40.0 (2026-02-18) - -## 2.39.0 (2026-01-29) - -## 2.38.0 (2026-01-16) - -## 2.36.0 (2025-11-26) - -## 2.35.0 (2025-11-12) - -## 2.34.0 (2025-10-29) - -## 2.33.0 (2025-10-17) - -## 2.32.0 (2025-10-01) - -## 2.31.0 (2025-09-17) - -## 2.30.0 (2025-09-03) - -## 2.29.0 (2025-08-20) - -## 2.28.0 (2025-08-07) - -## 2.27.0 (2025-07-23) - -## 2.26.0 (2025-06-25) - -## 2.25.0 (2025-06-04) - -## 2.24.0 (2025-05-22) - -## 2.23.0 (2025-05-07) - -## 2.22.0 (2025-04-11) - -## 2.21.0 (2025-03-27) - -## 2.20.0 (2025-03-13) - -## 2.19.0 (2025-02-28) - -## 2.18.0 (2025-02-12) - -## 2.17.0 (2025-01-29) - -## 2.16.0 (2025-01-15) - -## 2.15.0 (2025-01-02) - -## 2.14.0 (2024-12-11) - -## 2.13.0 (2024-11-27) - -## 2.12.0 (2024-11-16) - -## 2.11.0 (2024-10-30) - -## 2.10.0 (2024-10-16) - -## 2.9.0 (2024-10-03) - -## 2.8.0 (2024-09-19) - -## 2.7.0 (2024-09-05) - -## 2.6.0 (2024-08-21) - -## 2.5.0 (2024-08-07) - -## 2.4.0 (2024-07-24) - -## 2.3.0 (2024-07-10) - -## 2.2.0 (2024-06-26) - -### Internal - -- Upgrade `@octokit/webhooks` dependency ([#62666](https://github.com/WordPress/gutenberg/pull/62666)). - -## 2.1.0 (2024-06-15) - -## 2.0.0 (2024-05-31) - -### Breaking Changes - -- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases). - -## 1.57.0 (2024-05-16) - -## 1.56.0 (2024-05-02) - -## 1.55.0 (2024-04-19) - -## 1.54.0 (2024-04-03) - -## 1.53.0 (2024-03-21) - -## 1.52.0 (2024-03-06) - -## 1.51.0 (2024-02-21) - -## 1.50.0 (2024-02-09) - -## 1.49.0 (2024-01-24) - -## 1.48.0 (2024-01-10) - -## 1.47.0 (2023-12-13) - -## 1.46.0 (2023-11-29) - -## 1.45.0 (2023-11-16) - -## 1.44.0 (2023-11-02) - -## 1.43.0 (2023-10-18) - -## 1.42.0 (2023-10-05) - -## 1.41.0 (2023-09-20) - -## 1.40.0 (2023-08-31) - -## 1.39.0 (2023-08-16) - -## 1.38.0 (2023-08-10) - -## 1.37.0 (2023-07-20) - -## 1.36.0 (2023-07-05) - -## 1.35.0 (2023-06-23) - -## 1.34.0 (2023-06-07) - -## 1.33.0 (2023-05-24) - -## 1.32.0 (2023-05-10) - -## 1.31.0 (2023-04-26) - -## 1.30.0 (2023-04-12) - -## 1.29.0 (2023-03-29) - -## 1.28.0 (2023-03-15) - -## 1.27.0 (2023-03-01) - -## 1.26.0 (2023-02-15) - -## 1.25.0 (2023-02-01) - -## 1.24.0 (2023-01-11) - -## 1.23.0 (2023-01-02) - -## 1.22.0 (2022-12-14) - -## 1.21.0 (2022-11-16) - -## 1.20.0 (2022-11-02) - -## 1.19.0 (2022-10-19) - -## 1.18.0 (2022-10-05) - -## 1.17.0 (2022-09-21) - -## 1.4.0 (2020-04-15) - -### New Features - -- Include TypeScript type declarations ([#18942](https://github.com/WordPress/gutenberg/pull/18942)) -- The "Add First Time Contributor Label" task now prompts the user to link their GitHub account to their WordPress.org profile if necessary for props credit. The task has been renamed "First Time Contributor". - -### Enhancements - -- The "Add First Time Contributor Label" task now runs retroactively on pushes to trunk, due to [permission constraints](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token) of GitHub Actions. - -## 1.0.0 (2019-08-29) - -- Initial release. diff --git a/packages/project-management-automation/README.md b/packages/project-management-automation/README.md deleted file mode 100644 index 50fe3242c673ff..00000000000000 --- a/packages/project-management-automation/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# Gutenberg project management automation - -This is a [GitHub Action](https://help.github.com/en/categories/automating-your-workflow-with-github-actions) which contains various automation to assist with managing the Gutenberg GitHub repository: - -- [First Time Contributor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/project-management-automation/lib/tasks/first-time-contributor): Adds the "First Time Contributor" label to pull requests merged on behalf of contributors that have not previously made a contribution, and prompts the user to link their GitHub account to their WordPress.org profile if necessary for release notes credit. -- [Add Milestone](https://github.com/WordPress/gutenberg/tree/HEAD/packages/project-management-automation/lib/tasks/add-milestone): Assigns the plugin release milestone to a pull request once it is merged. -- [Assign Fixed Issues](https://github.com/WordPress/gutenberg/tree/HEAD/packages/project-management-automation/lib/tasks/assign-fixed-issues): Adds assignee for issues which are marked to be "Fixed" by a pull request, and adds the "In Progress" label. - -# Installation and usage - -To use the action, include it in your workflow configuration file: - -```yaml -on: pull_request -jobs: - pull-request-automation: - runs-on: ubuntu-latest - steps: - - uses: WordPress/gutenberg/packages/project-management-automation@trunk - with: - github_token: ${{ secrets.GITHUB_TOKEN }} -``` - -# API - -## Inputs - -- `github_token`: Required. GitHub API token to use for making API requests. This should be stored as a secret in the GitHub repository. - -## Outputs - -Each is empty unless the event it belongs to produced it, so a consumer should check before using one. - -- `welcome-prompt`: Message welcoming a first-time contributor. Set when a pull request is opened by someone whose first it is. -- `first-time-contributor-prompt`: Message asking a first-time contributor to link their WordPress.org profile. Set on a push that merged their first pull request, and only when no profile was found for them. -- `first-time-contributor-pr-number`: Pull request the account link prompt belongs to. Set alongside `first-time-contributor-prompt`, since a push payload carries no pull request number of its own. - -## Contributing to this package - -This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects. - -To find out more about contributing to this package or Gutenberg as a whole, please read the project's main [contributor guide](https://github.com/WordPress/gutenberg/tree/HEAD/CONTRIBUTING.md). - -

Code is Poetry.

diff --git a/tools/eslint/suppressions.json b/tools/eslint/suppressions.json index e795acf486f7f8..83511dca2327b2 100644 --- a/tools/eslint/suppressions.json +++ b/tools/eslint/suppressions.json @@ -15103,6 +15103,71 @@ "count": 1 } }, + "tools/project-management-automation/lib/debug.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/get-associated-pull-request.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/has-wordpress-profile.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/add-milestone/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/add-milestone/test/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/assign-fixed-issues/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/first-time-contributor-label/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, + "tools/project-management-automation/lib/test/get-associated-pull-request.js": { + "gutenberg/use-typescript": { + "count": 1 + } + }, "tools/release/cherry-pick.mjs": { "gutenberg/use-typescript": { "count": 1 diff --git a/tools/project-management-automation/README.md b/tools/project-management-automation/README.md new file mode 100644 index 00000000000000..e32d401dfb14ee --- /dev/null +++ b/tools/project-management-automation/README.md @@ -0,0 +1,31 @@ +# Gutenberg project management automation + +This is a [GitHub Action](https://help.github.com/en/categories/automating-your-workflow-with-github-actions) which contains various automation to assist with managing the Gutenberg GitHub repository: + +- [First Time Contributor](https://github.com/WordPress/gutenberg/tree/HEAD/tools/project-management-automation/lib/tasks/first-time-contributor): Adds the "First Time Contributor" label to pull requests merged on behalf of contributors that have not previously made a contribution, and prompts the user to link their GitHub account to their WordPress.org profile if necessary for release notes credit. +- [Add Milestone](https://github.com/WordPress/gutenberg/tree/HEAD/tools/project-management-automation/lib/tasks/add-milestone): Assigns the plugin release milestone to a pull request once it is merged. +- [Assign Fixed Issues](https://github.com/WordPress/gutenberg/tree/HEAD/tools/project-management-automation/lib/tasks/assign-fixed-issues): Adds assignee for issues which are marked to be "Fixed" by a pull request, and adds the "In Progress" label. + +## Usage + +The `pull-request-automation` workflow runs it after installing the dependencies: + +```yaml +- uses: ./tools/project-management-automation + with: + github_token: ${{ secrets.GITHUB_TOKEN }} +``` + +## API + +### Inputs + +- `github_token`: Required. GitHub API token to use for making API requests. This should be stored as a secret in the GitHub repository. + +### Outputs + +Each is empty unless the event it belongs to produced it, so a consumer should check before using one. + +- `welcome-prompt`: Message welcoming a first-time contributor. Set when a pull request is opened by someone whose first it is. +- `first-time-contributor-prompt`: Message asking a first-time contributor to link their WordPress.org profile. Set on a push that merged their first pull request, and only when no profile was found for them. +- `first-time-contributor-pr-number`: Pull request the account link prompt belongs to. Set alongside `first-time-contributor-prompt`, since a push payload carries no pull request number of its own. diff --git a/packages/project-management-automation/action.yml b/tools/project-management-automation/action.yml similarity index 100% rename from packages/project-management-automation/action.yml rename to tools/project-management-automation/action.yml diff --git a/packages/project-management-automation/lib/debug.js b/tools/project-management-automation/lib/debug.js similarity index 100% rename from packages/project-management-automation/lib/debug.js rename to tools/project-management-automation/lib/debug.js diff --git a/packages/project-management-automation/lib/get-associated-pull-request.js b/tools/project-management-automation/lib/get-associated-pull-request.js similarity index 100% rename from packages/project-management-automation/lib/get-associated-pull-request.js rename to tools/project-management-automation/lib/get-associated-pull-request.js diff --git a/packages/project-management-automation/lib/has-wordpress-profile.js b/tools/project-management-automation/lib/has-wordpress-profile.js similarity index 100% rename from packages/project-management-automation/lib/has-wordpress-profile.js rename to tools/project-management-automation/lib/has-wordpress-profile.js diff --git a/packages/project-management-automation/lib/index.js b/tools/project-management-automation/lib/index.js similarity index 100% rename from packages/project-management-automation/lib/index.js rename to tools/project-management-automation/lib/index.js diff --git a/packages/project-management-automation/lib/tasks/add-milestone/README.md b/tools/project-management-automation/lib/tasks/add-milestone/README.md similarity index 100% rename from packages/project-management-automation/lib/tasks/add-milestone/README.md rename to tools/project-management-automation/lib/tasks/add-milestone/README.md diff --git a/packages/project-management-automation/lib/tasks/add-milestone/index.js b/tools/project-management-automation/lib/tasks/add-milestone/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/add-milestone/index.js rename to tools/project-management-automation/lib/tasks/add-milestone/index.js diff --git a/packages/project-management-automation/lib/tasks/add-milestone/test/index.js b/tools/project-management-automation/lib/tasks/add-milestone/test/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/add-milestone/test/index.js rename to tools/project-management-automation/lib/tasks/add-milestone/test/index.js diff --git a/packages/project-management-automation/lib/tasks/assign-fixed-issues/README.md b/tools/project-management-automation/lib/tasks/assign-fixed-issues/README.md similarity index 100% rename from packages/project-management-automation/lib/tasks/assign-fixed-issues/README.md rename to tools/project-management-automation/lib/tasks/assign-fixed-issues/README.md diff --git a/packages/project-management-automation/lib/tasks/assign-fixed-issues/index.js b/tools/project-management-automation/lib/tasks/assign-fixed-issues/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/assign-fixed-issues/index.js rename to tools/project-management-automation/lib/tasks/assign-fixed-issues/index.js diff --git a/packages/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js b/tools/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js rename to tools/project-management-automation/lib/tasks/assign-fixed-issues/test/index.js diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-account-link/README.md b/tools/project-management-automation/lib/tasks/first-time-contributor-account-link/README.md similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-account-link/README.md rename to tools/project-management-automation/lib/tasks/first-time-contributor-account-link/README.md diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js b/tools/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js rename to tools/project-management-automation/lib/tasks/first-time-contributor-account-link/index.js diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js b/tools/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js rename to tools/project-management-automation/lib/tasks/first-time-contributor-account-link/test/index.js diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-label/README.md b/tools/project-management-automation/lib/tasks/first-time-contributor-label/README.md similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-label/README.md rename to tools/project-management-automation/lib/tasks/first-time-contributor-label/README.md diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-label/index.js b/tools/project-management-automation/lib/tasks/first-time-contributor-label/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-label/index.js rename to tools/project-management-automation/lib/tasks/first-time-contributor-label/index.js diff --git a/packages/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js b/tools/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js similarity index 100% rename from packages/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js rename to tools/project-management-automation/lib/tasks/first-time-contributor-label/test/index.js diff --git a/packages/project-management-automation/lib/test/get-associated-pull-request.js b/tools/project-management-automation/lib/test/get-associated-pull-request.js similarity index 100% rename from packages/project-management-automation/lib/test/get-associated-pull-request.js rename to tools/project-management-automation/lib/test/get-associated-pull-request.js diff --git a/packages/project-management-automation/package.json b/tools/project-management-automation/package.json similarity index 58% rename from packages/project-management-automation/package.json rename to tools/project-management-automation/package.json index 677009c215c6ab..ba116126b7a779 100644 --- a/packages/project-management-automation/package.json +++ b/tools/project-management-automation/package.json @@ -1,7 +1,8 @@ { - "name": "@wordpress/project-management-automation", - "version": "3.2.0", + "name": "@wordpress/project-management-automation-tools", + "version": "0.0.0", "description": "GitHub Action that implements various automation to assist with managing the Gutenberg GitHub repository.", + "private": true, "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", "keywords": [ @@ -10,11 +11,11 @@ "github", "action" ], - "homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/packages/project-management-automation/README.md", + "homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/tools/project-management-automation/README.md", "repository": { "type": "git", "url": "https://github.com/WordPress/gutenberg.git", - "directory": "packages/project-management-automation" + "directory": "tools/project-management-automation" }, "bugs": { "url": "https://github.com/WordPress/gutenberg/issues" @@ -22,23 +23,7 @@ "engines": { "node": ">=24.18.0" }, - "files": [ - "action.yml", - "build-types", - "lib", - "*.md", - "!**/test/**" - ], "type": "module", - "main": "lib/index.js", - "exports": { - ".": { - "types": "./build-types/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "types": "build-types/index.d.ts", "dependencies": { "@actions/core": "^3.0.1", "@actions/github": "^9.1.1", diff --git a/packages/project-management-automation/tsconfig.json b/tools/project-management-automation/tsconfig.json similarity index 100% rename from packages/project-management-automation/tsconfig.json rename to tools/project-management-automation/tsconfig.json diff --git a/tsconfig.build.json b/tsconfig.build.json index 773a524b3aa19c..f275453b4c56e2 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -70,7 +70,6 @@ { "path": "packages/primitives" }, { "path": "packages/priority-queue/tsconfig.build.json" }, { "path": "packages/private-apis/tsconfig.build.json" }, - { "path": "packages/project-management-automation" }, { "path": "packages/react-i18n" }, { "path": "packages/react-inert-value/tsconfig.build.json" }, { "path": "packages/redux-routine" }, diff --git a/tsconfig.json b/tsconfig.json index e0d45bc42b3400..b7c29044813c64 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -105,6 +105,7 @@ { "path": "storybook" }, { "path": "tools/monorepo" }, { "path": "tools/pr-meta" }, + { "path": "tools/project-management-automation" }, { "path": "tools/release" }, { "path": "tools/validation" }, { "path": "test/e2e" },