Skip to content

Commit 175395f

Browse files
authored
Merge pull request #315 from junpataleta/tagCLRs
Tag Component Lead Reviewers when moving issue to CLR
2 parents e0a676e + efabbe1 commit 175395f

File tree

1 file changed

+10
-1
lines changed
  • tracker_automations/component_leads_integration_mover

1 file changed

+10
-1
lines changed

tracker_automations/component_leads_integration_mover/lib.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,16 @@ function verify_revievers_availability() {
175175
# There is some component lead reviewer available, let's send the issue to CLR. This check is done.
176176
echo " - There are available reviewers (${available}) for the issue."
177177
outcome=CLR
178-
outcomedesc="Sending to CLR, there are available reviewers (${available}) for the issue."
178+
availableProfiles=()
179+
IFS=, read -r -a availableCLRs <<<"$available"
180+
for availableCLR in "${availableCLRs[@]}"; do
181+
availableCLR=$(trimstring "$availableCLR")
182+
if [[ -z ${available} ]]; then
183+
continue
184+
fi
185+
availableProfiles+=("[~${availableCLR}]")
186+
done
187+
outcomedesc=$(IFS=, ; echo "Sending to CLR, there are available reviewers for the issue: ${availableProfiles[*]}")
179188
return # Outcome set, and function finished we are done.
180189
}
181190

0 commit comments

Comments
 (0)