Skip to content

Commit

Permalink
T6781: Auto-close pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sever-sever committed Oct 15, 2024
1 parent 3e7f9a8 commit 7e7fdbc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr-auto-close.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 7e7fdbc

Please sign in to comment.