-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d9f276
commit 8c2ecd8
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Check and close inactive | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
|
||
jobs: | ||
close-inactive-issues: | ||
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: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Check inactive | ||
|
||
on: | ||
schedule: | ||
- cron: "0 5 * * *" | ||
|
||
jobs: | ||
check-inactive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check-inactive | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'check-inactive' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
inactive-day: 30 | ||
issue-state: open | ||
exclude-labels: 'bug,documentation,enhancement,invalid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
issue-labeled: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create comment | ||
uses: actions-cool/issues-helper@v3 | ||
if: github.event.label.name == 'inactive' | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}. Please ensure that you have filled out the issue template as much as possible and have answered any further questions asked. If you have not done so in the next 7 days this issue will be automatically closed.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# https://github.com/marketplace/actions/issues-helper | ||
name: Issue Remove Labels | ||
|
||
on: | ||
issues: | ||
types: [edited, reopened, labeled] | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
remove-inactive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: remove inactive | ||
if: github.event.issue.state == 'open' && github.event.issue.user != 'github-actions' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'remove-labels' | ||
issue-number: ${{ github.event.issue.number }} | ||
labels: 'inactive' |