diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-10-15 18:40:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 18:40:02 +0300 |
commit | a84f14d85d4b0df5dc4d334fc763e44e08caa95a (patch) | |
tree | 0c1a529efe48787e09546afc55c215926387a6d0 /.github/workflows/pr-auto-close.yml | |
parent | 74691a5f1686f60564e5936a2930058a7c5e9ace (diff) | |
download | vyos-1x-a84f14d85d4b0df5dc4d334fc763e44e08caa95a.tar.gz vyos-1x-a84f14d85d4b0df5dc4d334fc763e44e08caa95a.zip |
T6781: Use action to auto-close PRs (#4158)
Diffstat (limited to '.github/workflows/pr-auto-close.yml')
-rw-r--r-- | .github/workflows/pr-auto-close.yml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml index 36e1bba0e..40e13a25b 100644 --- a/.github/workflows/pr-auto-close.yml +++ b/.github/workflows/pr-auto-close.yml @@ -1,17 +1,18 @@ name: Auto-Close Pull Requests Circinus on: - pull_request: + pull_request_target: + types: + - opened branches: - circinus jobs: - auto_close_pr: + run: runs-on: ubuntu-latest steps: - - name: Close PR - run: | - set -eux - gh pr close ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --comment "Pull requests to this branch are not accepted and have been closed automatically." - env: - GH_TOKEN: ${{ secrets.PAT }} + - uses: superbrothers/close-pull-request@v3 + with: + # Optional. Post a issue comment just before closing a pull request. + comment: "Pull requests to this branch are not accepted and have been closed automatically." + github_token: ${{ secrets.PAT }} |