Skip to content

Commit 56bb189

Browse files
committed
feat: only check_contains_wip_label
1 parent f4c75f0 commit 56bb189

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

entrypoint.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ check_contains_wip_label() {
5454
run_ci_when_approved() {
5555
# https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
5656
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')
6059

6160
approvals=0
6261

@@ -96,13 +95,13 @@ run_ci_when_approved() {
9695
}
9796

9897
process() {
99-
run_ci_when_approved
98+
# run_ci_when_approved
10099
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
106105
}
107106

108107
process

0 commit comments

Comments
 (0)