Skip to content
Draft
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
37 changes: 37 additions & 0 deletions .github/workflows/stale.yml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we want to exempt issues with a draft PR request? We would want to close off the PR before we marked an issue as stale?

Does the actions/stale action create the stale label because that isn't a label in this repo right now.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm using 365 days just to close old ones that are probably not even needed or already solved, we shouldn't worry about the first issue.
Mmm second one, yes, it is supposed to work as a plug and play

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Close stale issues and PRs
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: 30 1 * * 1 # Every Monday at 1:30 AM UTC
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 365
days-before-pr-stale: 365
days-before-issue-close: 30
days-before-pr-close: 30
stale-issue-message: >-
This issue is stale because it has had no activity for 365 days.
Please confirm whether it is still relevant. If there is no response,
it will be closed in 30 days.
stale-pr-message: >-
This pull request is stale because it has had no activity for 365 days.
Please confirm whether it is still relevant. If there is no response,
it will be closed in 30 days.
close-issue-message: >-
Closing this issue due to inactivity. Please reopen or create a new issue
if this is still needed.
close-pr-message: >-
Closing this pull request due to inactivity. Please reopen or create a
new pull request if this is still needed.
stale-issue-label: stale
stale-pr-label: stale
close-issue-reason: not_planned
Loading