Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/close-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Auto-close PRs

on:
pull_request:
types: [opened]

jobs:
close-pr:
runs-on: ubuntu-latest
steps:
- name: Install GitHub CLI
run: sudo apt-get install gh -y

- name: Close PR and delete branch
run: |
gh pr close "$PR_URL" --delete-branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}