Skip to content

Commit fd3eadc

Browse files
committed
feat: test when it doesn't exist .review.state
1 parent cfd5905 commit fd3eadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}"
3131
ref=$(jq -r ".pull_request.head.ref" "$GITHUB_EVENT_PATH")
3232
number=$(jq -r ".pull_request.number" "$GITHUB_EVENT_PATH")
3333
action=$(jq -r ".action" "$GITHUB_EVENT_PATH")
34-
state=$(jq -r ".review.state" "$GITHUB_EVENT_PATH")
34+
state=$(jq -r ".[] | .review.state" "$GITHUB_EVENT_PATH")
3535

3636
check_contains_wip_label() {
3737
RESPONSE=$(

0 commit comments

Comments
 (0)