-
Notifications
You must be signed in to change notification settings - Fork 118
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 workflow to identify stale issues and PRs #279
add github workflow to identify stale issues and PRs #279
Conversation
.github/workflows/stale.yml
Outdated
name: Mark stale issues and pull requests | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # Run every day at midnight UTC on Sunday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't make sense? Does it run every day or just on Sunday's?
(I'd prefer every day at midnight)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it means any day (1-31) of any month (January to December) but it needs to be the Sunday.
I will switch to 0 0 * * *
to run every day at midnight 👍
.github/workflows/stale.yml
Outdated
|
||
# Issue configuration | ||
days-before-issue-stale: 60 | ||
stale-issue-message: 'This issue has become stale because it has been open 60 days with no activity. Adding the `lifecycle/frozen` label will cause this issue to ignore lifecycle events.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "will exempt this issue from future lifecycle events."
.github/workflows/stale.yml
Outdated
|
||
# PR configuration | ||
days-before-pr-stale: 30 | ||
stale-pr-message: 'This PR has become stale because it has been open for 30 days with no activity. Adding the `lifecycle/frozen` label will cause this PR to ignore lifecycle events.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same nit with this wording
…ord stale message
@patrick-ogrady by the way I did not sign my first commit. As soon as you approve I will sign it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I overrode this protection for this PR because your last commit was signed (all that shows on |
Close #261
I used the PR identified in the issue to create this PR.
This puts label
lifecycle/stale
on issues after 30 days of inactivity and on PRs after 60 days of inactivity.I just deleted useless values
close-issue-label: lifecycle/rotten
andclose-pr-label: lifecycle/rotten
because the workflow does not auto-close issues/PRs.