Commit 4c320c1
Generalize promoted-to-master logic to any promoted-to-* label on any repo
## What changed
- In manage_labeled_gh_event() (Step 7), replaced the hardcoded check triggering_label == 'promoted-to-master' and owner_repo == 'scylladb/staging' with triggering_label.startswith('promoted-to-').
## Why (Requirements Summary)
- The promoted-to-master + scylladb/staging logic was too restrictive. The same close-and-comment behavior should trigger for any label that starts with promoted-to- (e.g. promoted-to-master, promoted-to-branch-6.2, promoted-to-enterprise) on any repository, not just scylladb/staging.
- This makes the Jira sync automation reusable across all repos that use promoted-to-* labels to signal branch promotion.
- Re-applies the change from PR #139, which was overridden by a subsequent commit.
Fixes: PM-2091 parent aaea891 commit 4c320c1
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
717 | | - | |
| 716 | + | |
| 717 | + | |
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| |||
0 commit comments