Skip to content

Add stale bot #422

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

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add stale bot
  • Loading branch information
juancarlospaco committed Apr 29, 2024
commit 02a849c5b1bca9e614195dc3630229b553e88af7
25 changes: 25 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Stale Issues & PRs

on:
schedule:
- cron: '0 0 * * *'

jobs:
mark_stale:
name: Mark issues and PRs as Stale
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-pr-stale: 365
days-before-pr-close: -1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (code_refinement): Setting 'days-before-pr-close' to -1 may prevent PRs from ever being auto-closed.

Consider setting a positive number of days after which a stale PR should be closed to ensure the repository remains clean.

Suggested change
days-before-pr-close: -1
days-before-pr-close: 30

days-before-issue-stale: 365
days-before-issue-close: -1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (code_refinement): Setting 'days-before-issue-close' to -1 may prevent issues from ever being auto-closed.

It might be beneficial to define a specific timeframe after which stale issues are closed to maintain a manageable issue tracker.

Suggested change
days-before-issue-close: -1
days-before-issue-close: 30

stale-issue-message: >
This issue is stale because it has been open for 365 days with no activity.
stale-pr-message: >
This pull request is stale because it has been open for 365 days with no activity.
close-issue-message: >
This issue has been marked as stale and closed due to inactivity.
close-pr-message: >
This pull request has been marked as stale and closed due to inactivity.