Commit 1d85e30
feat: label issues close:fixed when a merged PR closes them (#213)
* feat: label issues close:fixed when a merged PR closes them
Add the "Label Fixed Issues on Merge" workflow. On pull_request_target
closed, when the PR was merged, it resolves the issues closed via linking
keywords (Closes/Fixes/Resolves) using GraphQL closingIssuesReferences and
applies the existing close:fixed label to each, keeping the close reason
visible in issue triage.
Uses pull_request_target so fork PRs still get issues:write; no PR head
code is checked out or executed. Skips issues that already carry the label
and ensures the label exists with its canonical color/description.
Also documents the auto-labeling in CONTRIBUTING.md.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* refactor: rely on sync workflow as sole source for close:fixed label
Remove the defensive label-creation block and the FIXED_LABEL_COLOR/
FIXED_LABEL_DESCRIPTION env vars. issue-labels-sync.yml already defines and
creates close:fixed and is the single source of truth for its color and
description, so duplicating them here only created a maintenance coupling.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* docs: revert CONTRIBUTING.md note; defer until all workflows merged
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat: fail workflow when close:fixed label is missing
Fail fast via core.setFailed if the label does not exist, rather than letting addLabels silently create a default-colored variant. Signals the label taxonomy is out of sync and the Sync Labels workflow needs to run.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* refactor: move label existence check into its own preceding step
Split the close:fixed existence check out of the apply step into a dedicated 'Verify close:fixed label exists' step that runs first, so the run fails before any labeling work when the label is missing.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent ee26bd6 commit 1d85e30
1 file changed
Lines changed: 128 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
0 commit comments