stale.yml now starts with a step that posts a notice on PRs that have
been inactive for a long time and adds the labels the stale step needs
to close them 14 days later. It covers PRs waiting on their author for
90 days, PRs with conflicts for 90 days, PRs nobody on the team has
answered for 180 days, and drafts with no activity for 180 days.
The day counts and the nightly notice limit are set once in the job's
environment and used by both steps. A manual run can preview, post or
skip the notices. The notice step logs the REST and GraphQL rate limits
when it finishes.
Drafts are no longer exempt in stale.yml, because the notice step
removes "wait for response" from drafts that have no open notice. The
stale PR messages and CONTRIBUTING describe the new rules.
stale.yml only removes the label when its daily run gets back to an
issue or PR, which can take a few days. A new workflow removes it when
a user comments on an open item that has the label.
The stale bot also checks exemptions before activity, so a stale item
that later gets an assignee or milestone, becomes a draft, or loses
"wait for response" is never checked again and keeps its label. A new
step in stale.yml removes the label from those.
Enhancement issues are no longer exempt. Many old feature requests may
no longer apply, and the stale notice lets the author say whether they
still want it. The stale and close messages now fit both bugs and
feature requests.
operations-per-run goes from 300 to 800. At 300, one pass over the open
issues and PRs took 7 runs, so a reply could keep the stale label for
up to a week. 800 still keeps each run under GitHub's limit of 500
comments an hour.
Adds .github/workflows/stale.yml, which replaces orca_bot.yml (removed in b78381e4f5).
Issues go stale after 90 days with no activity and close 14 days later. Enhancement, assigned and milestoned issues are skipped.
PRs are only checked when they have the wait for response label. They go stale after 90 days with no activity and close 14 days later. Drafts are skipped, and branches are not deleted.
Each run is limited to 300 operations, so the backlog gets labeled over about a week.