Commit d2c71b6
committed
fix: retrigger CodeRabbit on labeled event for unlocked+approved issues
- Switch bot-coderabbit-plan-trigger.yml trigger from 'assigned' back to
'labeled' so CodeRabbit fires when a skill label is added to an issue
that is already approved and unlocked (fallback path)
- Add 'approved' label guard to the job condition to prevent triggering
on locked/unapproved issues
- Move getLatestIssue() helper before logSummary() for clarity; no logic
change — already called in main() to refresh locked status after unlock
Primary path: approved-issues.yml unlocks the issue then calls the
script (handles skill label present at approval time).
Fallback path: this workflow fires on 'labeled' when skill label arrives
after approval (issue already unlocked).
Signed-off-by: Anshul Kushwaha <137977998+sudo-anshul@users.noreply.github.com>1 parent 5638ba8 commit d2c71b6
2 files changed
Lines changed: 36 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 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 | + | |
83 | 107 | | |
84 | 108 | | |
85 | 109 | | |
| |||
92 | 116 | | |
93 | 117 | | |
94 | 118 | | |
95 | | - | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
99 | 127 | | |
100 | 128 | | |
101 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments