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

Add GitHub action to mark inactive issues and PRs as stale #3653

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

chriszarate
Copy link
Member

Description

This pull request introduces a GitHub action 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). 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)

You can easily customize the time periods used for marking an issue stale or autoclosing. Consult the documentation for details on providing overrides.

Feel free to close this pull request if it does not suit your project's needs or workflows. If you would consider merging this pull request if the action were improved in some way, please open an issue or pull request to let us know.

Changelog Description

New "stale" GitHub action

We added a GitHub action to the repo to mark inactive issues and PRs as stale.

Deploy Notes

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.

@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Merging #3653 (ff53465) into develop (a979c20) will decrease coverage by 0.07%.
The diff coverage is n/a.

❗ Current head ff53465 differs from pull request most recent head 792c2eb. Consider uploading reports for the commit 792c2eb to get more accurate results

@@              Coverage Diff              @@
##             develop    #3653      +/-   ##
=============================================
- Coverage      34.53%   34.45%   -0.08%     
  Complexity      3567     3567              
=============================================
  Files            216      216              
  Lines          13828    13830       +2     
=============================================
- Hits            4775     4765      -10     
- Misses          9053     9065      +12     
Impacted Files Coverage Δ
qm-plugins/qm-object-cache/qm-object-cache.php 10.52% <0.00%> (-21.06%) ⬇️
qm-plugins/qm-alloptions/qm-alloptions.php 20.00% <0.00%> (-20.00%) ⬇️
query-monitor.php 31.81% <0.00%> (-11.04%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sonarcloud
Copy link

sonarcloud bot commented Sep 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@chriszarate chriszarate merged commit b08f127 into develop Sep 16, 2022
@chriszarate chriszarate deleted the add/stale-issue-pr-bot branch September 16, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants