Skip to content

Commit 31cfd83

Browse files
authored
Merge pull request #337 from junpataleta/PreventIncorrectHolds
Prevent incorrect holds
2 parents 9e3dfd2 + 0fc3deb commit 31cfd83

File tree

1 file changed

+12
-3
lines changed
  • tracker_automations/continuous_manage_queues

1 file changed

+12
-3
lines changed

tracker_automations/continuous_manage_queues/lib.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ function run_A2() {
6262
AND NOT filter = 21366
6363
AND (
6464
filter = 21363 OR
65-
labels IN (mdlqa)
65+
labels IN (mdlqa) OR
66+
level IS NOT EMPTY
6667
)" \
6768
--file "${resultfile}"
6869

@@ -183,9 +184,17 @@ function run_A3a() {
183184

184185
# A3b, add the "integration_held" + standard comment to any issue arriving to candidates (IR & CLR).
185186
function run_A3b() {
186-
# Get the list of issues in the candidates queues (IR & CLR). All them will be held with last week comment.
187+
# Get the list of issues in the candidates queues (IR & CLR) and hold with the last week comment, if necessary.
188+
# All issues in CLR that don't belong to any criteria below will be held:
189+
# - Must-fix issues
190+
# - mdlqa issues
187191
${basereq} --action getIssueList \
188-
--jql "filter=14000 OR filter=23329" \
192+
--jql "filter=14000 OR (
193+
filter=23329 AND NOT (
194+
filter = 21363 OR
195+
labels IN (mdlqa)
196+
)
197+
)" \
189198
--file "${resultfile}"
190199

191200
# Iterate over found issues, moving them to the current queue.

0 commit comments

Comments
 (0)