Skip to content

Workflows: Include workflow run URL in cherry-pick PR comments - #76593

Open
jigangz wants to merge 2 commits into
WordPress:trunkfrom
jigangz:fix/add-workflow-run-url-to-pr-comments-v2
Open

jigangz wants to merge 2 commits into
WordPress:trunkfrom
jigangz:fix/add-workflow-run-url-to-pr-comments-v2

Conversation

@jigangz

@jigangz jigangz commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

What?

Add a link to the GitHub Actions workflow run in the comments posted by the cherry-pick-wp-release workflow.

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-script step that posts a PR comment, this PR:

  1. Adds a run_url environment variable using ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
  2. Appends a [Workflow run](${runUrl}) link to the comment body

This 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:

  1. Triggering the cherry-pick workflow on a test PR with the appropriate label
  2. Confirming the resulting comment includes a clickable link to the workflow run

Fixes #76575

jigangz added 2 commits March 17, 2026 09:28
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
@jigangz
jigangz requested a review from desrosj as a code owner March 17, 2026 16:29
@github-actions

Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions

Copy link
Copy Markdown

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: jigangz <jigangz@git.wordpress.org>
Co-authored-by: desrosj <desrosj@git.wordpress.org>

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

@github-actions github-actions Bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 17, 2026
@github-actions

Copy link
Copy Markdown

👋 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.

@jigangz

jigangz commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

Note: this is a reopen of #76577, which was closed unintentionally. I rebased to fix a git author email mismatch (commits were using a local auto-generated email instead of my GitHub-linked one), which accidentally broke the branch history. All changes are the same as the original PR.

@jigangz

jigangz commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

@desrosj Friendly ping — this PR has been open for about a week with CI passing. Would you have a chance to review when you get a moment? Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include workflow run URL when commenting on PRs

1 participant