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 6a67840 commit 5d72746
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/close-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2


- name: Debug contains
echo: "The body of the pull request contains alfredodeza: ${{ contains(github.event.pull_request.body, 'alfredodeza' }} , and contains @alfredodeza: ${{ contains(github.event.pull_request.body, '@alfredodeza' }}
- name: Close PR if not pre-approved
if: |
${{ !(
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."
Expand Down

0 comments on commit 5d72746

Please sign in to comment.