-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: .github/workflows/issue-close-inactive.yml (#230)
new file: .github/workflows/issue-find-inactive.yml new file: .github/workflows/issue-labeled.yml new file: .github/workflows/issue-remove-inactive.yml Co-authored-by: Sean Sullivan <ssulliva@redhat.com>
- Loading branch information
1 parent
d5f4730
commit 39ba533
Showing
4 changed files
with
85 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,20 @@ | ||
--- | ||
# 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,21 @@ | ||
--- | ||
# 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: 'new,enhancement,backlog,help wanted,module-issue,blocked - upstream' | ||
... |
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,22 @@ | ||
--- | ||
# 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' # || github.event.label.name == 'need info' | ||
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,22 @@ | ||
--- | ||
# 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' | ||
... |