33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
name: Stale
|
|
|
|
# **What it does**: Close issues and pull requests after no updates for 365 days.
|
|
# **Why we have it**: We want to manage our queue of issues and pull requests.
|
|
# **Who does it impact**: Everyone that works on docs or docs-internal.
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '40 16 * * *' # Run each day at 16:40 UTC / 8:40 PST
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@9c1b1c6e115ca2af09755448e0dbba24e5061cc8
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
|
|
stale-pr-message: 'This PR is stale because there have been no updates in 365 days.'
|
|
days-before-stale: 365
|
|
days-before-close: 0
|
|
stale-issue-label: 'stale'
|
|
stale-pr-label: 'stale'
|
|
exempt-pr-labels: 'never-stale,waiting for review'
|
|
exempt-issue-labels: 'never-stale,help wanted,waiting for review'
|
|
operations-per-run: 1000
|
|
close-issue-reason: not_planned
|