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

Mark issues and pull requests as stale #6872

Merged
merged 8 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
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
31 changes: 31 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Mark and close stale issues and pull requests

# Please refer to https://github.com/actions/stale/blob/master/action.yml
# to see all config knobs of the stale action.

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

permissions:
contents: read

jobs:
stale:

permissions:
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/[email protected]
ritudes marked this conversation as resolved.
Show resolved Hide resolved
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'A friendly reminder that this issue had no activity for 30 days.'
ritudes marked this conversation as resolved.
Show resolved Hide resolved
stale-pr-message: 'A friendly reminder that this PR had no activity for 30 days.'
ritudes marked this conversation as resolved.
Show resolved Hide resolved
stale-issue-label: 'stale-issue'
ritudes marked this conversation as resolved.
Show resolved Hide resolved
stale-pr-label: 'stale-pr'
ritudes marked this conversation as resolved.
Show resolved Hide resolved
days-before-stale: 30
ritudes marked this conversation as resolved.
Show resolved Hide resolved
days-before-close: 365
ritudes marked this conversation as resolved.
Show resolved Hide resolved
remove-stale-when-updated: true