Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
ci: add job to auto-close PRs to main
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Jun 8, 2023
1 parent 2f22a96 commit 47385e8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/close-prs-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Close PRs to main
on:
pull-request:
branches: [main]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Close pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
gh pr close "$PR_URL" --comment "Auto-closing pull request: the main branch of this repo will be auto-clobbered"

0 comments on commit 47385e8

Please sign in to comment.