Improve PR close auto-comment message (#3713)
* Improve auto-comment message * Lock these PRs after closing
This commit is contained in:
parent
18e89666a6
commit
8a67ce8e41
2 changed files with 12 additions and 4 deletions
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -26,6 +26,5 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please delete this comment if you confirm that you want to submit this Pull Request.
|
Please confirm that you want to submit this Pull Request to Minimal Mistakes, the free Jekyll theme by Michael Rose, by deleting this comment block.
|
||||||
CHECK_PR_DID_NOT_CONFIRM
|
|
||||||
-->
|
-->
|
||||||
|
|
13
.github/workflows/bad-pr.yml
vendored
13
.github/workflows/bad-pr.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
close-pr:
|
close-pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "contains(github.event.pull_request.body, 'CHECK_PR_DID_NOT_CONFIRM') || github.event.pull_request.body == ''"
|
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions-ecosystem/action-add-labels@v1
|
- uses: actions-ecosystem/action-add-labels@v1
|
||||||
with:
|
with:
|
||||||
|
@ -15,4 +15,13 @@ jobs:
|
||||||
- uses: superbrothers/close-pull-request@v3
|
- uses: superbrothers/close-pull-request@v3
|
||||||
with:
|
with:
|
||||||
# Optional. Post an issue comment just before closing a pull request.
|
# Optional. Post an issue comment just before closing a pull request.
|
||||||
comment: "This PR is not valid for inclusion. Please check again if you're submitting improvements for *the theme*."
|
comment: |
|
||||||
|
**You have created a Pull Request to the wrong repository.** This is the repository for [Minimal Mistakes][1], the free Jekyll theme. See [GitHub Docs: About pull requests][2] if you need help.
|
||||||
|
|
||||||
|
[1]: https://mmistakes.github.io/minimal-mistakes/
|
||||||
|
[2]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
|
||||||
|
- uses: sudo-bot/action-pull-request-lock@v1.0.5
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
number: ${{ github.event.pull_request.number }}
|
||||||
|
lock-reason: spam
|
||||||
|
|
Loading…
Reference in a new issue