[ECO-1352] Reset cron scheduler and stale/close times back to normal values and delete stale branches #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reset cron scheduler values back to once per day
Reset stale/close times back to 45/15 (or something else) from 1/1 used for testing
Delete stale branch when PR is stale for X days
You can see this action was tested in my forked repo here: xbtmatt#4
and the github action that triggered the branch deletion is here: https://github.com/xbtmatt/econia-v5/actions/runs/8276253969/job/22644504793
Do note that the grace period for deleting a stale PR/issue can sometimes be longer than the period between the last run in CI due to the variance in scheduler times.
That is, if the branch is deleted after being stale for 1 day and the github action runs again, 23 hours 58 minutes and 39 seconds after marking it as stale, it won't delete it that day, because it technically has been stale for < 1 day. This isn't a big deal but it is something to note.