Commit ed651ab
fix: prevent duplicate enhancement guide runs per issue
When an issue is created with the 'enhancement' label, both the
'opened' and 'labeled' events fire, triggering the workflow twice.
Fix with two layers:
- concurrency group per issue number with cancel-in-progress
- refined if condition: 'labeled' only triggers when the specific
label added is 'enhancement', not for any label change
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9cc0921 commit ed651ab
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
14 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments