Skip to content

Commit 2de0434

Browse files
committed
Break out comments with a role restriction
1 parent 3301b8b commit 2de0434

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

tracker_automations/continuous_manage_queues/continuous_manage_queues.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fi
105105

106106
# Behaviour A, before the release (normally the 5 weeks between freeze and release).
107107
echo "Current time period is ${behaviorAB} the release, lastweekdate is ${lastweekdate}"
108-
echo "Current behaviour is ${behaviourA3}"
108+
echo "Current behaviour is ${behaviorA3}"
109109

110110
if [ $behaviorAB == "before" ]; then
111111
# A1, add the "integration_held" + standard comment to any new feature or improvement arriving to candidates.

tracker_automations/continuous_manage_queues/lib.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,13 @@ function run_A2() {
107107
--field "${customfield_currentlyInIntegration}"=Yes \
108108
--field "${customfield_componentLeadReview}"=No \
109109
--field "${customfield_integrator}"= \
110-
--field "${customfield_tester}"= \
110+
--field "${customfield_tester}"=
111+
112+
${basereq} --action addComment \
113+
--issue ${issue} \
111114
--comment "Continuous queues manage: Moving to current because it's important" \
112115
--role "Integrators"
116+
113117
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}"
114118
done
115119
}
@@ -179,7 +183,10 @@ function run_A3a() {
179183
--field "${customfield_currentlyInIntegration}"=Yes \
180184
--field "${customfield_componentLeadReview}"=No \
181185
--field "${customfield_integrator}"= \
182-
--field "${customfield_tester}"= \
186+
--field "${customfield_tester}"=
187+
188+
${basereq} --action addComment \
189+
--issue ${issue} \
183190
--comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \
184191
--role "Integrators"
185192
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold (before ${lastweekdate})" >> "${logfile}"
@@ -287,7 +294,10 @@ function run_B1b() {
287294
--field "${customfield_currentlyInIntegration}"=Yes \
288295
--field "${customfield_componentLeadReview}"=No \
289296
--field "${customfield_integrator}"= \
290-
--field "${customfield_tester}"= \
297+
--field "${customfield_tester}"=
298+
299+
${basereq} --action addComment \
300+
--issue ${issue} \
291301
--comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \
292302
--role "Integrators"
293303
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current on-sync: threshold" >> "${logfile}"
@@ -399,7 +409,10 @@ function run_C() {
399409
--transition "CI Global Self-Transition" \
400410
--field "${customfield_currentlyInIntegration}"= \
401411
--field "${customfield_integrator}"= \
402-
--field "${customfield_tester}"= \
412+
--field "${customfield_tester}"=
413+
414+
${basereq} --action addComment \
415+
--issue ${issue} \
403416
--comment "Continuous queues manage: Moving out from current because it's held" \
404417
--role "Integrators"
405418
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved out from current: held" >> "${logfile}"

tracker_automations/normal_manage_queues/lib.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ function run_A() {
6969
--field "${customfield_currentlyInIntegration}"=Yes \
7070
--field "${customfield_componentLeadReview}"=No \
7171
--field "${customfield_integrator}"= \
72-
--field "${customfield_tester}"= \
72+
--field "${customfield_tester}"=
73+
74+
${basereq} --action addComment \
75+
--issue ${issue} \
7376
--comment "Normal queues manage: Moving to current because it's important" \
7477
--role "Integrators"
7578
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}"
@@ -141,7 +144,10 @@ function run_B() {
141144
--field "${customfield_currentlyInIntegration}"=Yes \
142145
--field "${customfield_componentLeadReview}"=No \
143146
--field "${customfield_integrator}"= \
144-
--field "${customfield_tester}"= \
147+
--field "${customfield_tester}"=
148+
149+
${basereq} --action addComment \
150+
--issue ${issue} \
145151
--comment "Normal queues manage: Moving to current given we are below the threshold ($currentmin)" \
146152
--role "Integrators"
147153
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold" >> "${logfile}"
@@ -179,7 +185,10 @@ function run_C() {
179185
${basereq} --action transitionIssue \
180186
--issue ${issue} \
181187
--transition "CI Global Self-Transition" \
182-
--field "${customfield_integrationPriority}"=1 \
188+
--field "${customfield_integrationPriority}"=1
189+
190+
${basereq} --action addComment \
191+
--issue ${issue} \
183192
--comment "Normal queues manage: Raising integration priority after ${waitingdays} days awaiting" \
184193
--role "Integrators"
185194
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} raised integration priority" >> "${logfile}"

0 commit comments

Comments
 (0)