Skip to content

Commit 15919a8

Browse files
committed
Tag CLRs by AccountIDs
1 parent 2ceb945 commit 15919a8

File tree

1 file changed

+8
-1
lines changed
  • tracker_automations/component_leads_integration_mover

1 file changed

+8
-1
lines changed

tracker_automations/component_leads_integration_mover/lib.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ function verify_revievers_availability() {
182182
if [[ -z ${availableCLR} ]]; then
183183
continue
184184
fi
185-
availableProfiles+=("[~${availableCLR}]")
185+
# Due to GDPR, we cannot mention the email address of the reviewer, so we need to get the accountID.
186+
# File where accountID will be stored.
187+
accountfile=${WORKSPACE}/component_leads_integration_mover_accountid.txt
188+
echo -n > "${accountfile}"
189+
${basereq} --action getUser --userEmail ${availableCLR} --quiet --file "${accountfile}" > /dev/null
190+
CLRAccountID=$(cat "${accountfile}")
191+
rm "${accountfile}"
192+
availableProfiles+=("[~${CLRAccountID}]")
186193
done
187194
outcomedesc=$(IFS=, ; echo "Sending to CLR, there are available reviewers for the issue: ${availableProfiles[*]}")
188195
return # Outcome set, and function finished we are done.

0 commit comments

Comments
 (0)