Skip to content

Commit f690c32

Browse files
committed
chore: remove commented code from shell scripts
1 parent 74d358b commit f690c32

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/releases/get_job_approver.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
jobsJson=$(curl -s -X GET "https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/job" --header "Circle-Token: $CIRCLE_TOKEN")
22

3-
#jobsJson=$(echo "$jobsJson" | jq -R '.' | jq -s '.' | jq -r 'join("")')
43
job=$(jq '.items[] | select(.name == "hold_release_slack_notification")' <<< "$jobsJson")
54

6-
#job=$(echo "$job" | jq -R '.' | jq -s '.' | jq -r 'join("")')
75
approver_id=$(jq '.approved_by' <<< "$job")
86

97
approver_id=$(tr -d '"' <<< "$approver_id")
108

119
user=$(curl -s -X GET "https://circleci.com/api/v2/user/$approver_id" --header "Circle-Token: $CIRCLE_TOKEN")
1210

13-
#user=$(echo "$user" | jq -R '.' | jq -s '.' | jq -r 'join("")')
1411
username=$(jq '.login' <<< "$user")
1512

1613
username=$(tr -d '"' <<< "$username")

0 commit comments

Comments
 (0)