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

US-614190: Stale action workflow to handle for github repo issues & PR's with no activity #756

Merged
merged 5 commits into from
May 29, 2024
Merged
Changes from 2 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
25 changes: 25 additions & 0 deletions .github/workflows/github-actions-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: '0 23 * * *' # once a day at 11pm UTC time zone
jobs:
stale:
permissions:
issues: write # for commenting on an issue and editing labels
pull-requests: write # for commenting on a PR and editing labels
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# timing
days-before-stale: 60 # 60 days of inactivity
days-before-close: 7 # 7 more days of inactivity
# labels to watch for, add, and remove
only-labels: 'pending info' # only mark issues/PRs as stale if they have this label
labels-to-remove-when-unstale: 'pending info' # remove label when unstale -- should be manually added back if information is insufficient
# automated messages to issue/PR authors
stale-issue-message: 'This issue is marked as stale because it has been open 60 days with no activity. Remove pending info & stale labels or comment or this will be closed in 7 days.'
stale-pr-message: 'This pull request is marked as stale because it has been open 60 days with no activity. Remove pending info & stale labels or comment or this will be closed in 7 days.'
close-issue-message: 'This issue has been closed due to inactivity and lack of information.If you still encounter this issue, please add the requested information and re-open.'
close-pr-message: 'This PR has been closed due to inactivity and lack of changes.If you would like to still work on this PR, please address the review comments and re-open.'
umaveerabasaveswararao marked this conversation as resolved.
Show resolved Hide resolved
Loading