Skip to content

Commit dd3bf37

Browse files
committed
Auto close the irregular issues
also fix the token key of issue-cleaner
1 parent 035b55c commit dd3bf37

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/issues-cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
DAYS_TO_CLOSE: ${{ 2 }}
1313
uses: actions/stale@v3
1414
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
repo-token: ${{ secrets.GH_PAT }}
1616
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'
1717
stale-issue-label: 'stale'
1818
exempt-issue-labels: 'pending, in progress'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Close Irregular Issues"
2+
3+
on:
4+
issues:
5+
types: [opened, edited]
6+
7+
jobs:
8+
auto_close_issues:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- name: Automatically close issues that don't follow the issue template
14+
uses: lucasbento/auto-close-issues@v1.0.2
15+
with:
16+
github-token: ${{ secrets.GH_PAT }}
17+
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."
18+
closed-issues-label: "🙁 Not following issue template"

0 commit comments

Comments
 (0)