2020-04-02 16:55:31 +00:00
|
|
|
name: Mark stale issues and pull requests
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
2022-10-03 14:53:12 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-04-02 16:55:31 +00:00
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
|
2022-10-03 14:53:12 +00:00
|
|
|
permissions:
|
|
|
|
issues: write # for actions/stale to close stale issues
|
|
|
|
pull-requests: write # for actions/stale to close stale PRs
|
2020-04-02 16:55:31 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-10-03 14:52:25 +00:00
|
|
|
- uses: actions/stale@v6
|
2020-04-02 16:55:31 +00:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-04-08 17:46:22 +00:00
|
|
|
stale-issue-message: "The Cobra project currently lacks enough contributors to adequately respond to all issues.
|
|
|
|
This bot triages issues and PRs according to the following rules:
|
|
|
|
|
|
|
|
- After 60d of inactivity, lifecycle/stale is applied.
|
|
|
|
- After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed.
|
|
|
|
|
|
|
|
You can:
|
|
|
|
|
|
|
|
- Make a comment to remove the stale label and show your support. The 60 days reset.
|
2022-11-22 02:04:26 +00:00
|
|
|
- If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interested in reopening"
|
2022-04-08 17:46:22 +00:00
|
|
|
|
|
|
|
stale-pr-message: "The Cobra project currently lacks enough contributors to adequately respond to all PRs.
|
|
|
|
This bot triages issues and PRs according to the following rules:
|
|
|
|
|
|
|
|
- After 60d of inactivity, lifecycle/stale is applied.
|
|
|
|
- After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the PR is closed.
|
|
|
|
|
|
|
|
You can:
|
|
|
|
|
|
|
|
- Make a comment to remove the stale label and show your support. The 60 days reset.
|
2022-11-22 02:04:26 +00:00
|
|
|
- If a PR has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interested in reopening."
|
2022-04-08 17:46:22 +00:00
|
|
|
|
|
|
|
days-before-stale: 60
|
|
|
|
days-before-close: 30
|
|
|
|
stale-issue-label: 'lifecycle/stale'
|
|
|
|
stale-pr-label: 'lifecycle/stale'
|
2022-09-08 00:25:01 +00:00
|
|
|
exempt-issue-labels: 'lifecycle/frozen'
|
|
|
|
exempt-pr-labels: 'lifecycle/frozen'
|
2022-04-08 17:46:22 +00:00
|
|
|
close-issue-label: 'lifecycle/rotten'
|
|
|
|
close-pr-label: 'lifecycle/rotten'
|
|
|
|
|
|
|
|
# Since cobra has so many legacy issues and PRs that need to be triaged,
|
|
|
|
# only label new PRs and issues.
|
|
|
|
start-date: '2022-02-01T00:00:00Z'
|
|
|
|
|