summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr-auto-close.yml25
1 files changed, 25 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..df19c449d
--- /dev/null
+++ b/.github/workflows/pr-auto-close.yml
@@ -0,0 +1,25 @@
+name: Auto-Close Pull Requests Sagitta
+
+on:
+ pull_request_target:
+ types:
+ - opened
+ - reopened
+ branches:
+ - circinus
+ - sagitta
+
+permissions:
+ pull-requests: write
+ issues: write
+ contents: read
+
+jobs:
+ run:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'vyos'
+ steps:
+ - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 #v3
+ with:
+ comment: "Pull requests to this branch are not accepted and have been closed automatically."
+ github_token: ${{ github.token }}