-
Notifications
You must be signed in to change notification settings - Fork 31
Add stale workflow #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add stale workflow #306
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,29 @@ | ||
| name: Issue management - remove labels as needed | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| issue_comment: | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: write | ||
| if: > | ||
| contains(github.event.issue.labels.*.name, 'needs author feedback') && | ||
| github.event.comment.user.login == github.event.issue.user.login | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - name: Remove labels | ||
| env: | ||
| ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER | ||
| gh issue edit --remove-label "stale" $ISSUE_NUMBER |
This file contains hidden or 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,57 @@ | ||
| name: Issue management - run stale action | ||
|
|
||
| on: | ||
| schedule: | ||
| # hourly at minute 50 | ||
| - cron: "50 * * * *" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| stale: | ||
| permissions: | ||
| contents: read | ||
| issues: write # for actions/stale to close stale issues | ||
| pull-requests: write # for actions/stale to close stale PRs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 | ||
| with: | ||
| days-before-stale: 7 | ||
| days-before-close: 7 | ||
| only-labels: "needs author feedback" | ||
| stale-issue-label: stale | ||
| stale-issue-message: > | ||
| This issue has been labeled as stale due to lack of activity and needing author feedback. | ||
| It will be automatically closed if there is no further activity over the next 7 days. | ||
| stale-pr-label: stale | ||
| stale-pr-message: > | ||
| This PR has been labeled as stale due to lack of activity and needing author feedback. | ||
| It will be automatically closed if there is no further activity over the next 7 days. | ||
|
|
||
| - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 | ||
| with: | ||
| days-before-stale: 365 | ||
| days-before-close: 0 | ||
| close-issue-label: stale | ||
| close-issue-message: > | ||
| Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog. | ||
| Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time. | ||
| days-before-pr-stale: -1 | ||
| days-before-pr-close: -1 | ||
| only-labels: "enhancement" | ||
| exempt-issue-labels: "stale" # so that it won't close issues labeled as stale by "needs author feedback" | ||
|
|
||
| - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 | ||
| with: | ||
| days-before-issue-stale: -1 | ||
| days-before-issue-close: -1 | ||
| days-before-pr-stale: 90 | ||
| days-before-pr-close: 14 | ||
| stale-pr-label: stale | ||
| stale-pr-message: > | ||
| This PR has been labeled as stale due to lack of activity. | ||
| It will be automatically closed if there is no further activity over the next 14 days. | ||
| exempt-draft-pr: false | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, we don't have issue templates here, and so effectively the enhancement label isn't being used...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed by #307 and manually labeling existing issues