ci: close issue that inactive more than 60 days [skip ci]
This commit is contained in:
parent
849124f177
commit
7249f277b2
3
.github/workflows/issue_check_inactive.yml
vendored
3
.github/workflows/issue_check_inactive.yml
vendored
@ -13,4 +13,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
actions: 'check-inactive'
|
actions: 'check-inactive'
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
inactive-day: 30
|
inactive-day: 30
|
||||||
|
body: Hello, this issue has been inactive for more than 30 days and will be closed if inactive for another 30 days.
|
20
.github/workflows/issue_close_inactive.yml
vendored
Normal file
20
.github/workflows/issue_close_inactive.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Close inactive
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 */7 * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
close-inactive:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: close-issues
|
||||||
|
uses: actions-cool/issues-helper@v3
|
||||||
|
with:
|
||||||
|
actions: 'close-issues'
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
labels: 'inactive'
|
||||||
|
inactive-day: 30
|
||||||
|
close-reason: 'not_planned'
|
||||||
|
body: |
|
||||||
|
Hello @${{ github.event.issue.user.login }}, this issue was closed due to inactive more than 60 days. You can reopen or recreate it if you think it should continue.
|
@ -1,11 +1,11 @@
|
|||||||
name: Check need info
|
name: Close need info
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 */7 * *"
|
- cron: "0 0 */7 * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-need-info:
|
close-need-info:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: close-issues
|
- name: close-issues
|
Loading…
x
Reference in New Issue
Block a user