Skip to content

Commit b3a101d

Browse files
authored
Merge pull request #358 from HuongNV13/fixCLRsMention
Mention CLRs by AccountIDs
2 parents b95f512 + e7f94f8 commit b3a101d

File tree

1 file changed

+2
-8
lines changed
  • tracker_automations/component_leads_integration_mover

1 file changed

+2
-8
lines changed

tracker_automations/component_leads_integration_mover/lib.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,8 @@ function verify_revievers_availability() {
182182
if [[ -z ${availableCLR} ]]; then
183183
continue
184184
fi
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}]")
185+
# Due to GDPR, we cannot mention the email address of the reviewer, so we need to use the accountID.
186+
availableProfiles+=("[~accountid:${availableCLR}]")
193187
done
194188
outcomedesc=$(IFS=, ; echo "Sending to CLR, there are available reviewers for the issue: ${availableProfiles[*]}")
195189
return # Outcome set, and function finished we are done.

0 commit comments

Comments
 (0)