Skip to content

Commit

Permalink
Merge branch 'main' into me
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-sorrentino authored Sep 7, 2024
2 parents ea54b72 + 9f16edb commit fb8ba42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bypass-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
GH_TOKEN: ${{ secrets.ADMIN_PAT }}
run: |
AUTHOR=$(gh pr view ${{ github.event.pull_request.number }} --json author --jq '.author.login')
ADMIN_CHECK=$(gh api user/memberships/orgs/scidsg --jq '.role')
ADMIN_CHECK=$(gh api orgs/scidsg/members/$AUTHOR --jq '.role')
if [ "$ADMIN_CHECK" != "admin" ]; then
echo "User is not an admin or is not a public member of the organization. Exiting."
exit 1
Expand Down

0 comments on commit fb8ba42

Please sign in to comment.