Skip to content

Move PHP Sync Issue Generator file to @wordpress/release-tools#78456

Merged
manzoorwanijk merged 4 commits into
WordPress:trunkfrom
USERSATOSHI:try/migrate-php-sync-gen-to-release-tool
May 21, 2026
Merged

Move PHP Sync Issue Generator file to @wordpress/release-tools#78456
manzoorwanijk merged 4 commits into
WordPress:trunkfrom
USERSATOSHI:try/migrate-php-sync-gen-to-release-tool

Conversation

@USERSATOSHI
Copy link
Copy Markdown
Contributor

What?

Part of #75041

Migrate PHP Sync Issue Generator file from bin to release-tool workspace package.

Why?

Part of organization of all toolings and this file is supposed to be a follow up phase after the release-tools is merged.

How?

Migrates the file and the update all its references elsewhere to the new location.

Update the code to still use the prev dirname for the issueContent.md

Use of AI Tools

None

@USERSATOSHI USERSATOSHI changed the title refactor: move generate-php-sync-issue.mjs to release tool Move PHP Sync Issue Generator file to @wordpress/release-tools May 20, 2026
Comment thread tools/release/generate-php-sync-issue.mjs
@USERSATOSHI
Copy link
Copy Markdown
Contributor Author

cc: @manzoorwanijk

@USERSATOSHI USERSATOSHI marked this pull request as ready for review May 20, 2026 06:58
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: USERSATOSHI <[email protected]>
Co-authored-by: manzoorwanijk <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@manzoorwanijk manzoorwanijk added the [Type] Build Tooling Issues or PRs related to build tooling label May 20, 2026
@manzoorwanijk
Copy link
Copy Markdown
Member

cc: @manzoorwanijk

Thank you for this.

Just a heads up. I am currently in Japan for some work-related commitments, and may be slow to respond/review while traveling. I hope to get back to this PR as soon as I am able.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the PHP Sync Issue Generator from the legacy bin/ scripts area into the @wordpress/release-tools workspace package, updating invocation to run via the workspace while keeping the generated issueContent.md output in the historical location.

Changes:

  • Add a generate-php-sync-issue workspace script to @wordpress/release-tools.
  • Update the generator to write issueContent.md to bin/issueContent.md from its new location.
  • Update the root other:generate-php-sync-issue script and remove the old script entry from bin/tsconfig.json.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
tools/release/package.json Adds a workspace script entry to run the generator from @wordpress/release-tools.
tools/release/generate-php-sync-issue.mjs Adjusts output path resolution so the generated markdown lands in bin/issueContent.md.
package.json Updates the root npm script to delegate to the @wordpress/release-tools workspace script.
bin/tsconfig.json Removes the generator from the bin scripts TS config include list after relocation.
Comments suppressed due to low confidence (1)

tools/release/generate-php-sync-issue.mjs:160

  • The output path is hard-coded to <repoRoot>/bin/issueContent.md by resolving __dirname up two levels. This makes the script dependent on the current repo layout and can break if the tool is executed from a different directory structure (or if bin/ isn’t present). Consider making the output path configurable (e.g. --output) and/or defaulting to process.cwd() while ensuring the target directory exists before writing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@manzoorwanijk manzoorwanijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. This looks good.

@manzoorwanijk manzoorwanijk merged commit b383bb9 into WordPress:trunk May 21, 2026
40 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.3 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants