Skip to content

Commit

Permalink
Update close-pull-requests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredodeza authored Jan 29, 2024
1 parent 4a31346 commit 6a67840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/close-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:

- name: Close PR if not pre-approved
if: |
${{
!contains(github.event.pull_request.labels.*.name, 'pre-approved')
${{ !(
contains(github.event.pull_request.labels.*.name, 'pre-approved')
||
!contains(github.event.pull_request.body, '@alfredodeza')
}}
contains(github.event.pull_request.body, '@alfredodeza')
) }}
run: |
MESSAGE="This repository doesn't accept pull requests. Please fork the repository and make changes there. If you really need this PR to be merged you must be an admin and label this pr with the 'pre-approved' label *or* tag Alfredo Deza (alfredodeza) to take a look."
gh pr close ${{ github.event.pull_request.number }} --repo education/codespaces-project-template-js --comment "$MESSAGE"
Expand Down

0 comments on commit 6a67840

Please sign in to comment.