summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-10-15 18:40:02 +0300
committerGitHub <noreply@github.com>2024-10-15 18:40:02 +0300
commita84f14d85d4b0df5dc4d334fc763e44e08caa95a (patch)
tree0c1a529efe48787e09546afc55c215926387a6d0
parent74691a5f1686f60564e5936a2930058a7c5e9ace (diff)
downloadvyos-1x-a84f14d85d4b0df5dc4d334fc763e44e08caa95a.tar.gz
vyos-1x-a84f14d85d4b0df5dc4d334fc763e44e08caa95a.zip
T6781: Use action to auto-close PRs (#4158)
-rw-r--r--.github/workflows/pr-auto-close.yml17
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 }}