Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Oct 18, 2024
1 parent 2a5cbaa commit d8e009c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-approvals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
# Get the number of approvals in this pull request
approvals=$(gh pr view $PR_NUMBER --json reviews --jq '[.reviews.[] | select(.authorAssociation == "MEMBER" and .state == "APPROVED")] | length')
gh pr view $PR_NUMBER --json reviews --jq '[.reviews.[] | select(.authorAssociation == "MEMBER" and .state == "APPROVED")]'
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/timescale/timescaledb/pulls/$PR_NUMBER/reviews --jq '[.[] | select(.author_association == "MEMBER" and .state == "APPROVED")]'

Check failure on line 32 in .github/workflows/pr-approvals.yaml

View workflow job for this annotation

GitHub Actions / Check YAML code in tree

32:211 [line-length] line too long (231 > 210 characters)
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/timescale/timescaledb/pulls/$PR_NUMBER/reviews --jq '[.[] | select(.author_association == "MEMBER" and .state == "APPROVED")] | length'

Check failure on line 33 in .github/workflows/pr-approvals.yaml

View workflow job for this annotation

GitHub Actions / Check YAML code in tree

33:211 [line-length] line too long (240 > 210 characters)
if [[ $approvals -lt 2 ]] && [[ "${files}" ]] ; then
echo "This pull request requires 2 approvals before merging."
Expand Down

0 comments on commit d8e009c

Please sign in to comment.