-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Showing
8 changed files
with
114 additions
and
18 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
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
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 |
---|---|---|
|
@@ -2,24 +2,44 @@ name: Mark stale issues | |
|
||
on: | ||
schedule: | ||
- cron: "0 8 * * *" | ||
- cron: '0 8 * * *' | ||
workflow_dispatch: | ||
issue_comment: | ||
|
||
env: | ||
stale_label: stale | ||
|
||
jobs: | ||
stale: | ||
stale_action: | ||
if: github.event_name != 'issue_comment' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- uses: actions/stale@v7.0.0 | ||
- uses: actions/stale@v8.0.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 30 | ||
days-before-close: 5 | ||
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days." | ||
stale-issue-label: "stale" | ||
stale-issue-label: $stale_label | ||
exempt-issue-labels: "Bug, WIP, Fixed In Next Release, Internal, Never Stale" | ||
exempt-all-issue-assignees: true | ||
operations-per-run: 300 | ||
close-issue-reason: "not_planned" | ||
|
||
remove_stale: # trigger "stale" removal immediately when stale issues are commented on | ||
if: github.event_name == 'issue_comment' | ||
permissions: | ||
contents: read # for actions/checkout | ||
issues: write # to edit issues label | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Remove 'stale' label | ||
run: gh issue edit ${{ github.event.issue.number }} --remove-label $stale_label | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
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
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
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
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