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 stale bot for old PRs #1186

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
18 changes: 18 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Maintenance: Close Stale PRs"
on:
schedule:
- cron: "30 1 * * *"

permissions:
pull-requests: "write"

jobs:
stale:
runs-on: "ubuntu-latest"
if: github.repository_owner == 'SchemaStore'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wrong owner?

steps:
- uses: "actions/stale@v9"
with:
close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free make a new PR if you wish to continue¶"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free make a new PR if you wish to continue"
close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue"

days-before-pr-stale: 365
days-before-pr-close: 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer to use stale+close combination like 350+15 days, so people have time to renew it if needed.

Loading