-
Notifications
You must be signed in to change notification settings - Fork 10.2k
add github action to automatically handle stale user support issues #4683
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: 'Close stale issues' | ||
on: | ||
schedule: | ||
# Run daily at 430 am PT | ||
- cron: '30 11 * * *' | ||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
stale-issue-message: 'This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if it should be left open.' | ||
|
||
days-before-stale: 30 | ||
days-before-close: 7 | ||
stale-issue-label: 'Stale' | ||
only-labels: 'User Support' | ||
exempt-all-assignees: true | ||
exempt-all-milestones: true |
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.
why do you need this here?
Uh oh!
There was an error while loading. Please reload this page.
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.
the action interacts with & controls repo issues - labelling, commenting, closing. The official actions/stale doc examples don't actually work (???) but commenters in the repo say you need
github_token
and/orpermissions:
key to work (and when I tested adding them, it started working)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.
Update, tested and confirmed that
is needed but the token is not, so I've remove the token part