Workflows: Include workflow run URL in cherry-pick PR comments#76577
Workflows: Include workflow run URL in cherry-pick PR comments#76577jigangz wants to merge 3 commits intoWordPress:trunkfrom
Conversation
|
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @jigangzhou@jigangdeMacBook-Air.local. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @jigangz! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
|
Done! Switched both steps to pull the run URL directly from the If anything else looks off, let me know! |
|
Thanks @jigangz! When you're able, can you please link your wordpress.org account to your GitHub one so that we can give you proper attribution in WordPress releases? The steps are included above in the Props Bot comment. |
|
Done, just linked my wordpress.org account (@jigangz) to GitHub. Thanks for the heads up! |
* HTML Block: Remove "unsaved changes" check * Use onRequestClose directly Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Add a link to the GitHub Actions workflow run in the comments posted by the cherry-pick workflow, for both successful cherry-picks and conflict notifications. This helps contributors quickly access the workflow logs for debugging or verification. Fixes WordPress#76575
3cfb459 to
9438987
Compare
|
Hey, sorry for the noise — I had to reopen this as a new PR (#76593). I rebased the branch to fix a git author email mismatch (my commits were showing an auto-generated local email instead of my GitHub-linked one), and that accidentally broke the branch history, which caused this PR to be closed automatically. Everything else is the same. Thanks! |
What?
Add a link to the GitHub Actions workflow run in the comments posted by the
cherry-pick-wp-releaseworkflow.Why?
When the cherry-pick workflow comments on a PR (either for a successful cherry-pick or a conflict notification), there is no link back to the workflow run logs. This makes it harder for contributors to debug failures or verify the cherry-pick. See #76575.
How?
For each
actions/github-scriptstep that posts a PR comment, this PR:run_urlenvironment variable using${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}[Workflow run](${runUrl})link to the comment bodyThis applies to both the success comment ("Comment on the PR") and the conflict comment ("Comment on the PR about conflict") steps.
Testing Instructions
This change only affects workflow comment formatting. It can be verified by:
Fixes #76575