File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,8 @@ check_contains_wip_label() {
54
54
run_ci_when_approved () {
55
55
# https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
56
56
body=$( curl -sSL -H " ${AUTH_HEADER} " -H " ${API_HEADER} " " ${URI} /repos/${GITHUB_REPOSITORY} /pulls/${number} /reviews?per_page=100" )
57
- echo " ${body} body"
58
- # reviews=$(echo "$body" | jq -r '.[] | {state: .state} | @base64')
59
- reviews=" "
57
+ echo " ${body} body jq"
58
+ reviews=$( echo " $body " | jq -r ' .[] | {state: .state} | @base64' )
60
59
61
60
approvals=0
62
61
@@ -96,13 +95,13 @@ run_ci_when_approved() {
96
95
}
97
96
98
97
process () {
99
- run_ci_when_approved
98
+ # run_ci_when_approved
100
99
check_contains_wip_label
101
- if [[ " $action " == " submitted" ]] && [[ " $state " == " approved" ]]; then
102
- run_ci_when_approved
103
- else
104
- echo " Ignoring event ${action} /${state} "
105
- fi
100
+ # if [[ "$action" == "submitted" ]] && [[ "$state" == "approved" ]]; then
101
+ # run_ci_when_approved
102
+ # else
103
+ # echo "Ignoring event ${action}/${state}"
104
+ # fi
106
105
}
107
106
108
107
process
You can’t perform that action at this time.
0 commit comments