Remove PR filter from workflow
GitHub does not allow to run workflows on PR from first-time contributors. see: <https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks>
This commit is contained in:
parent
eb247b8886
commit
d5e08b05ab
1 changed files with 2 additions and 6 deletions
|
@ -1,20 +1,16 @@
|
||||||
name: "Intercept bad issue/PRs"
|
name: "Intercept bad issues"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
pull_request:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
autoclose:
|
autoclose:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Auto close issues/pr that did not follow template
|
- name: Auto close issues that did not follow template
|
||||||
uses: roots/issue-closer@v1.1
|
uses: roots/issue-closer@v1.1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-pattern: "(\\[x\\]|\\[X\\]) I have read"
|
issue-pattern: "(\\[x\\]|\\[X\\]) I have read"
|
||||||
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
|
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
|
||||||
pr-pattern: "(\\[x\\]|\\[X\\]) (Bug fix|New feature|Breaking change|Documentation update)|@dependabot"
|
|
||||||
pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."
|
|
Loading…
Reference in a new issue