Replies: 4 comments 3 replies
-
|
You’re running into a platform limitation here. Linking or unlinking an issue in the Development section does not emit a pull_request event, so there’s nothing for Actions to react to automatically. Right now, the only ways to re-evaluate this are exactly what you’ve already mentioned: pushing a new commit, editing the PR description, or manually re-running the workflow from the Actions tab. One workaround is to use a required status check and make it clear in the failure message that the check needs to be manually re-run after linking the issue. Another option is adding a lightweight label-based flow and trigger on the label, but that still requires a manual action. Unfortunately there isn’t a webhook or event today for “Development section updated,” so this can’t be fully automated with Actions alone at the moment. |
Beta Was this translation helpful? Give feedback.
-
|
Hey! I looked into that PR issue-linking problem. |
Beta Was this translation helpful? Give feedback.
-
|
If your repo supports it (Public repos or GitHub Enterprise): Path: Enable the built-in rule: Require linked issues Since GitHub doesn’t emit an event for “Issue Linked”, you need a manual event nudge that does fire. 1️⃣ Label Toggle Trigger (Most Common Hack) Extend your workflow triggers: on: 2️⃣ ready_for_review Trigger (Clean Team Flow) If your team uses Draft PRs: on: 3️⃣ Use a Dedicated Action (Optional) There are community actions like Verify Linked Issue that wrap the API logic for you. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
General
Discussion Details
We have a requirement that all PRs are linked (in the "Development" section) to a PR before merging and wish to enforce this with a workflow check. Currently we can check the PR has a linked issue using this step:
However I can only trigger via
pull_requesttypes:[opened, edited, synchronize, reopened]. None of these will retrigger when the PR is linked to an issue though.Cheers.
Beta Was this translation helpful? Give feedback.
All reactions