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

INT-3259: Added github action for labeling and closing stale issues #485

Merged
merged 4 commits into from
Nov 26, 2023
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Stale"

# This uses Github actions minutes. To learn more: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
name: Close stale issues
runs-on: ubuntu-latest
permissions:
# contents: write # only for delete-branch option
issues: write
# pull-requests: write # only makes issues stale, not PRs

steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Respond with a comment or this will be closed in 7 days.'
days-before-stale: 30 # Days before an issue becomes stale
days-before-close: 7 # Days before a stale labelled issue is closed
any-of-labels: 'needs: more info'
labels-to-remove-when-unstale: 'needs: more info'