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

Create stale.yml #52

Open
wants to merge 1 commit into
base: gh-pages
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
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '45 8 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand the action correctly, I think some parameters are missing. According to the docs, I'd expect at least days-before-stale and days-before-close.

Copy link
Contributor

Choose a reason for hiding this comment

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

the defaults for those are 60/7

Two values I've used before areexempt-pr-labels / exempt-issue-labels . Though there is an argument this can be overused (it was in my previous project), so the group may prefer that this has to be done by adding an explanation as to why, and manually re-opening

repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
Copy link

@n1ckl0sk0rtge n1ckl0sk0rtge Sep 26, 2024

Choose a reason for hiding this comment

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

Suggested change
stale-issue-message: 'Stale issue message'
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.'

stale-pr-message: 'Stale pull request message'

Choose a reason for hiding this comment

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

Suggested change
stale-pr-message: 'Stale pull request message'
stale-pr-message: 'This pull request has been automatically marked as stale due to lack of recent updates. It will be closed if no further activity occurs within 7 days. Please review and update if needed.'

stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'