Skip to content

Commit

Permalink
chore: add some debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeerivers committed Jun 14, 2024
1 parent 998080c commit 61147ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/approve-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@ jobs:
actionable_urls=()
inactionable_urls=()
for url in ${urls//,/ }
for url in $urls
do
echo "Checking $url for check status ..."
pending_checks=$(gh pr view $url --json statusCheckRollup --jq '.statusCheckRollup[].conclusion' | grep -v 'SUCCESS')
if [ -z "$pending_checks" ]; then
actionable_urls+=($url)
echo "i added $url to actionable_urls"
else
inactionable_urls+=($url)
echo "i added $url to inactionable_urls"
fi
done
Expand Down

0 comments on commit 61147ad

Please sign in to comment.