Skip to content

Commit b4952a0

Browse files
committed
Try auto-closing bad PRs
1 parent 9ab55b6 commit b4952a0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@
2323

2424
<!--
2525
Is this related to any GitHub issue(s)?
26-
-->
26+
-->
27+
28+
<!--
29+
Please delete this comment if you confirm that you want to submit this Pull Request.
30+
CHECK_PR_DID_NOT_CONFIRM
31+
-->

.github/workflows/bad-pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: cleanup-pr
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
close-pr:
9+
runs-on: ubuntu-latest
10+
if: "contains(github.event.pull_request.body, 'CHECK_PR_DID_NOT_CONFIRM')"
11+
steps:
12+
- uses: superbrothers/close-pull-request@v3
13+
with:
14+
# Optional. Post an issue comment just before closing a pull request.
15+
comment: "This PR is not valid for inclusion. Please check again if you're submitting improvements for *the theme*."

0 commit comments

Comments
 (0)