Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Add GitHub workflow to mark issues and PR as stale #1095

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

GaryJones
Copy link
Contributor

This pull request introduces a GitHub workflow that runs daily and will automatically mark inactive issues and PRs as stale. Keeping issues and pull requests manageable and actionable is important for a codebase's health.

The default behavior of this action will mark issues and pull requests as stale after 60 days of inactivity, by adding a label of [Status] Stale and leaving an explanatory comment (example). This PR uses 30 days for this repository though, as there are a lot of outstanding issues. If another 7 days of inactivity pass, it will be labeled [Status] Autoclosed and closed. (It can always be reopened, which resets the clock.)

This action ignores issues and PRs with the following labels:

  • [Pri] Critical
  • [Status] Keep
  • dependencies (ensures that Dependabot pull requests are not marked as stale or closed)

Upon merging, this action will run at about midnight UTC. Issues and pull requests that already meet the stale threshold will be immediately marked stale, but will not be autoclosed until an additional 7 days of inactivity pass.

This pull request introduces a GitHub workflow that runs daily and will automatically mark inactive issues and PRs as stale. Keeping issues and pull requests manageable and actionable is important for a codebase's health.

The default behavior of this action will mark issues and pull requests as stale after **60 days** of inactivity, by adding a label of `[Status] Stale` and leaving an explanatory comment ([example](Automattic/eslint-config-wpvip#6 (comment))). This PR uses 30 days for this repository though, as there are a lot of outstanding issues. If another **7 days** of inactivity pass, it will be labeled `[Status] Autoclosed` and closed. (It can always be reopened, which resets the clock.)

This action ignores issues and PRs with the following labels:

- `[Pri] Critical`
- `[Status] Keep`
- `dependencies` (ensures that **Dependabot** pull requests are not marked as stale or closed)

Upon merging, this action will run at about midnight UTC. Issues and pull requests that already meet the stale threshold will be immediately marked stale, but will not be autoclosed until an additional 7 days of inactivity pass.
@GaryJones GaryJones merged commit da073ea into master Sep 20, 2022
@GaryJones GaryJones deleted the add/stale-workflow branch October 8, 2022 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants