Skip to content

Commit 74be6c8

Browse files
committed
Do not perform CLR triage for improvements/new features during freeze
1 parent 1016a5b commit 74be6c8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tracker_automations/component_leads_integration_mover/component_leads_integration_mover.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#clearcache: set it to "true" to force the removal of the (48h) cached groups, components and reviewers data.
1010
#quiet: with any value different from "false", don't perform any action in the Tracker.
1111
#restrictedto: if set, restrict any comment to that role in the project. Blank means visible to everybody.
12+
#releasedate: Release date, used to calculate the freeze period. Improvements and new features will not be moved to CLR during freeze. YYYY-MM-DD.
1213

1314
# Let's go strict (exit on error)
1415
set -e
@@ -92,10 +93,26 @@ echo "Using cached (until ${validuntil}) CLR metadata information."
9293

9394
source ${mydir}/lib.sh # Add all the functions.
9495

96+
# Code freeze date calculated 6 weeks before the release date.
97+
freezedate=$(date -d "${releasedate} -6week" +%Y%m%d)
98+
99+
# On-sync end date calculated 2 weeks after the release date.
100+
onsyncenddate=$(date -d "${releasedate} +2week" +%Y%m%d)
101+
102+
# Today's date.
103+
nowdate=$(date +%Y%m%d)
104+
105+
# We'll exclude New Features and Improvements from the CLR process during the freeze period.
106+
excludequery=""
107+
if [ "${nowdate}" -ge "${freezedate}" ] && [ "${nowdate}" -lt "${onsyncenddate}" ]; then
108+
excludequery="AND issuetype NOT IN ('New Feature', Improvement)"
109+
echo "Today (${nowdate}) is within the freeze period (${freezedate} - ${onsyncenddate}). Improvements and new features will not be moved to the CLR queue."
110+
fi
111+
95112
# Search for all the issues awaiting for integration and not being decided between CLR/IR.
96113
# Note: customfield_10118 is the peer reviewer custom field.
97114
${basereq} --action getIssueList \
98-
--jql "filter = 23535" \
115+
--jql "filter = 23535 ${excludequery}" \
99116
--columns="Key,Assignee,Peer reviewer,Components,Security Level,Summary" \
100117
--outputFormat=4 \
101118
--outputType=json \

0 commit comments

Comments
 (0)