-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Label and close stale PRs We just had a session going over PRs. For some of them we just followed up and asked if the author would like to continue working on it. We can automate that. Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * Update .github/workflows/stale.yaml --------- Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
- Loading branch information
1 parent
9201fb9
commit 8fbc080
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Label and close stale PRs' | ||
on: | ||
schedule: | ||
# Run at 1:30 AM UTC every day | ||
- cron: '30 1 * * *' | ||
workflow_dispatch: # Allows manual triggering | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
# Pull Request Settings | ||
days-before-pr-stale: 150 | ||
days-before-pr-close: 30 | ||
stale-pr-message: 'Thank you for your contribution. This pull request has been marked as stale because it has had no activity in the last 150 days. It will be closed in 30 days if there is no further activity. If you need more time, you can add a comment to the PR.' | ||
close-pr-message: 'This pull request has been closed because it has been stale for 30 days with no activity. Feel free to reopen if you want to continue working on this.' | ||
stale-pr-label: 'stale' | ||
|
||
# Disable issue handling completely | ||
days-before-stale: -1 | ||
days-before-close: -1 | ||
|
||
# Optional: Remove stale label when PR is updated | ||
remove-stale-when-updated: true | ||
|
||
# Optional settings to reduce API usage | ||
operations-per-run: 100 | ||
|
||
# Enable statistics in the logs | ||
enable-statistics: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters