Skip to content

Commit

Permalink
deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Sep 18, 2024
1 parent 340ba05 commit c23f570
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/bad-pr.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Cleanup bad PR
# name: Cleanup bad PR

on:
pull_request_target:
types: [opened, reopened]
# on:
# pull_request_target:
# types: [opened, reopened]

jobs:
close-pr:
runs-on: ubuntu-latest
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'Type: Invalid'
- uses: superbrothers/close-pull-request@v3
with:
# Optional. Post an issue comment just before closing a pull request.
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.
# jobs:
# close-pr:
# runs-on: ubuntu-latest
# if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
# steps:
# - uses: actions-ecosystem/action-add-labels@v1
# with:
# labels: 'Type: Invalid'
# - uses: superbrothers/close-pull-request@v3
# with:
# # Optional. Post an issue comment just before closing a pull request.
# 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/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
lock-reason: spam
# [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/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ github.event.pull_request.number }}
# lock-reason: spam

0 comments on commit c23f570

Please sign in to comment.