Skip to content

Commit

Permalink
Use event api for pr number
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Jan 23, 2025
1 parent 819aeed commit a95d0b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ jobs:
run: |
if ! git merge-base --is-ancestor origin/main ${{ github.event.pull_request.head.sha }};
then echo "This branch is not up to date with main";
exit 1; fi
echo "pull_request_number=$(gh pr view --json number -q .number || echo "")"
gh pr comment $pull_request_number \
gh pr comment ${{ github.event.pull_request.number }} \
--body "This pull request is not up to date with main. Please merge main into this brach or rebase this branch onto main. This PR should not be approved until this the status checks pass."
exit 1; fi
# - name: Get Pull Request Number
# id: pr-number
Expand Down

0 comments on commit a95d0b5

Please sign in to comment.