Auto close the irregular issues
also fix the token key of issue-cleaner
This commit is contained in:
parent
c340199191
commit
aac29d43e5
2 changed files with 19 additions and 1 deletions
2
.github/workflows/issues-cleaner.yml
vendored
2
.github/workflows/issues-cleaner.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
DAYS_TO_CLOSE: ${{ 2 }}
|
DAYS_TO_CLOSE: ${{ 2 }}
|
||||||
uses: actions/stale@v3
|
uses: actions/stale@v3
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GH_PAT }}
|
||||||
stale-issue-message: 'This issue is stale because it has been open ${{ env.DAYS_TO_STALE }} days with no activity. Remove stale label or comment or this will be closed in ${{ env.DAYS_TO_CLOSE }} days'
|
stale-issue-message: 'This issue is stale because it has been open ${{ env.DAYS_TO_STALE }} days with no activity. Remove stale label or comment or this will be closed in ${{ env.DAYS_TO_CLOSE }} days'
|
||||||
stale-issue-label: 'stale'
|
stale-issue-label: 'stale'
|
||||||
exempt-issue-labels: 'pending, in progress'
|
exempt-issue-labels: 'pending, in progress'
|
||||||
|
|
18
.github/workflows/issues-filter.yml
vendored
Normal file
18
.github/workflows/issues-filter.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: "Close Irregular Issues"
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto_close_issues:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Automatically close issues that don't follow the issue template
|
||||||
|
uses: lucasbento/auto-close-issues@v1.0.2
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GH_PAT }}
|
||||||
|
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template. \n> Follow the template to edit this issue and it will automatically reopen."
|
||||||
|
closed-issues-label: "🙁 Not following issue template"
|
Loading…
Reference in a new issue