Skip to content

Commit b0766e1

Browse files
committed
wip
Signed-off-by: Robin Jarry <[email protected]>
1 parent b9ba885 commit b0766e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

check-commits.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ err() {
4444
}
4545

4646
check_issue() {
47-
json=$(curl -f -X GET -L --no-progress-meter \
47+
curl -f -X GET -L --no-progress-meter \
4848
-H "Accept: application/vnd.github+json" \
4949
-H "X-GitHub-Api-Version: 2022-11-28" \
50-
"$api_url/issues/${1##*/}") || return 1
51-
test $(echo "$json" | jq -r .state) = open
50+
"$api_url/issues/${1##*/}" | jq -r .state | grep -Fx open
5251
}
5352

5453
for rev in $revisions; do

0 commit comments

Comments
 (0)