maint: Add stale github action#4926
maint: Add stale github action#4926MikeGoldsmith wants to merge 4 commits intoopen-telemetry:mainfrom
Conversation
|
Thank you @MikeGoldsmith for making this happen! Please could you also whip up a quick, generalized explanation under I think the 14+7 day rule is generally fair. But maybe a 14+14 would be safer? EDIT: Shoot I'm on the wrong PR 😉 will go to the other one open-telemetry/opentelemetry-python-contrib#4220 |
I do want to add the GHA to both core and contrib, but happy to tweak there first then copy here. |
|
I've updated this PR to match the one we have open for contrib:
|
| on: | ||
| schedule: | ||
| # hourly at minute 23 | ||
| - cron: "23 * * * *" |
There was a problem hiding this comment.
Should this run daily instead of hourly?
"23 0 * * *"
There was a problem hiding this comment.
Maybe use the same as semconv repo: https://github.com/open-telemetry/semantic-conventions/blob/main/.github/workflows/stale-pr.yml#L4C14-L4C24
| stale-pr-message: > | ||
| This PR has been automatically marked as stale because it has not had | ||
| any activity for 14 days. It will be closed if no further activity | ||
| occurs within 14 days of this comment. |
There was a problem hiding this comment.
Should we add a recommendation here? e.g.
If you're still working on this, please add a comment or push new commits.
| on: | ||
| schedule: | ||
| # hourly at minute 23 | ||
| - cron: "23 * * * *" |
There was a problem hiding this comment.
| - cron: "23 * * * *" | |
| - cron: "12 3 * * *" |
Description
Adds a GitHub Action to automatically mark stale PRs and close them after inactivity, adapted from the opentelemetry-java workflow.
Type of change
How Has This Been Tested?
CI-only change, no code tests applicable.
Does This PR Require a Contrib Repo Change?
Checklist: