Skip to content

Commit

Permalink
Add require-be label
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-mcneil committed Oct 29, 2024
1 parent b6b801d commit e7dd891
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/backend-pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ jobs:
run: |
if [ ${{ contains(toJSON(github.event.pull_request.requested_teams.*.name), 'backend') }} ]; then
echo "exempt=false" >> $GITHUB_ENV
exit 1
else
echo "exempt=true" >> $GITHUB_ENV
exit 1
exit 0
fi
- name: Check Draft state
id: check_draft
run: |
if [ ${{ github.event.pull_request.draft }} ]; then
echo "Draft PR detected, skipping label checks."
exit 0
fi
- name: DELETE ME - echo vars
if: always()
run: |
echo "exempt: ${{ env.exempt }}"
echo 'requested_teams: ${{ toJSON(github.event.pull_request) }}' | jq .
echo 'requested_teams: ${{ toJSON(github.event.pull_request.requested_teams) }}' | jq .
echo 'requested_teams: ${{ toJSON(github.event.pull_request.requested_teams) }}' | jq 'length'
echo '${{ toJSON(github.event.pull_request.requested_teams) }}' | jq 'length'
echo '${{ toJSON(github.event.pull_request.requested_teams) }}' | jq .
echo '${{ toJSON(github.event.pull_request) }}' | jq .
- name: This shouldn't Run
run: echo "This step should run only if checks don't exit early"
Expand Down

0 comments on commit e7dd891

Please sign in to comment.