Repository navigation
CI: Flag issue mentions that are not linked in the Development field - #77396
adamsilverstein wants to merge 8 commits into
Conversation
Add a non-invasive pull_request_target workflow that parses the PR body for issue references (#N, GH-N, issue URLs), compares them against the PR's closingIssuesReferences via GraphQL, and posts or updates a sticky comment listing any referenced issues that aren't surfaced in the Development sidebar. The comment suggests using a closing keyword or manually linking the issue so release leads and release-note writers can find every PR attached to a ticket. The check is advisory and does not fail the PR.
|
Flaky tests detected in 9d4fe16. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24481862957
|
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
The workflow needs pull_request_target to comment on fork PRs, and it never checks out or runs code from the PR.
|
@desrosj appreciate your feedback here! |
Reviewers noted that many PRs reference issues with "Related to" or "Part of" without resolving them, and that nudging contributors to link those would close the issues on merge. Ignore mentions that follow an informational phrase on the same line, and warn in the comment that linking closes the issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018vwYjUgqt8Ro82RJ8FLH1e
PR descriptions are soft-wrapped, so a whole paragraph sits on one line. Matching "see" or "cc" anywhere earlier on the line hid real unlinked mentions later in the paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018vwYjUgqt8Ro82RJ8FLH1e
Fixes found in code review: - Grant issues: read, since the job reads issues through REST and GraphQL. - Ignore code blocks, inline code and Trac ticket numbers so CSS colours and core tickets aren't reported as Gutenberg issues. - Serialize runs per PR and remove duplicate bot comments, so racing events can't leave a stale notice behind. - Only count linked issues from this repository; a linked issue in another repo with the same number no longer hides a mention. - Re-check links once after a short wait, since GitHub resolves closing keywords asynchronously. - Look up all candidates in one GraphQL query instead of one REST call each. - Note that sidebar links refresh the notice on the next push or edit. - Use github-script v9.0.0 like the other workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018vwYjUgqt8Ro82RJ8FLH1e
Updated after the feedback on #77397 to cut down on noise and to stop nudging people into closing issues they only reference.
Claude wrote this description and kept it current through review:
AI Use
Claude Code wrote the code and this description, and I steered. I will review and test.