Add faster staling for issues with the Suggestion/ Discussion label. #75303
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.
Summary
None
Purpose of change
Based on #75151
This introduces faster staling for issues (or PRs, but I don't expect them to have that label) that have the "<Suggestion / Discussion>" label applied.
Describe the solution
Resurrecting the hour-of-the day handling from the previous alternating direction feature, I have the action process discussion issues for 6 hours and then the other issues for 6 hours. It does so by setting several of the action's parameters with the ternary operator matching against a list of hours.
Describe alternatives you've considered
Eh...
Testing
Have to run it in-repo.
Additional context
This is the first step in a mini-project to change how suggestion issues are used.
What I want to happen is if someone makes a kind of vague suggestion, it either results in one or more concrete issues, or is simply closed with the resolution being "well here's what was discussed" and people can read it later after its closure.