Skip to content
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

Create new stale issue workflow #21495

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/new_stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
id: scheduledSearch.updateStaleIssues
name: Update Stale Issues
description: Update stale issues that have not been active in 30 days
resource: repository
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description: >-
Search for Issue where -
* Issue is open
* Issue is not assigned
* Issue has not had activity in the last 30 days

Then -
* Apply the stale label to Issue
frequencies:
- daily:
time: 15:00
filters:
- isIssue
- isOpen
- isNotAssigned
- isNotLabeledWith:
label: contributions welcome
- isNotLabeledWith:
label: documentation
- isNotLabeledWith:
label: feature request
- isNotLabeledWith:
label: regression
- noActivitySince:
days: 30
actions:
- addReply:
reply: "Applying stale label due to no activity in 30 days"
- addLabel:
label: stale
- description:
Search for Issue where -
* Issue is open
* Issue is labeled stale
* Issue has not had activity in the last 30 days

Then -
* Close the issue
frequencies:
- daily:
time: 15:00
filters:
- hasLabel:
label: stale
- isIssue
- isOpen
- isNotAssigned
- noActivitySince:
days: 30
actions:
- addReply:
reply: "Closing issue due to no activity in 30 days"
- closeIssue
Loading