summaryrefslogtreecommitdiff
path: root/.github/workflows/pr-auto-close.yml
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-10-15 16:42:05 +0300
committerGitHub <noreply@github.com>2024-10-15 16:42:05 +0300
commit74691a5f1686f60564e5936a2930058a7c5e9ace (patch)
treece6761a53eefcf093be1acd370d8c115e6ed8852 /.github/workflows/pr-auto-close.yml
parent3e7f9a8703195a70ab45b40c0b87253fb7ec7edb (diff)
downloadvyos-1x-74691a5f1686f60564e5936a2930058a7c5e9ace.tar.gz
vyos-1x-74691a5f1686f60564e5936a2930058a7c5e9ace.zip
T6781: Auto-close pull requests (#4156)
Diffstat (limited to '.github/workflows/pr-auto-close.yml')
-rw-r--r--.github/workflows/pr-auto-close.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml
new file mode 100644
index 000000000..36e1bba0e
--- /dev/null
+++ b/.github/workflows/pr-auto-close.yml
@@ -0,0 +1,17 @@
+name: Auto-Close Pull Requests Circinus
+
+on:
+ pull_request:
+ branches:
+ - circinus
+
+jobs:
+ auto_close_pr:
+ 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 }}