Looking at the documentation, there appears to only be one flag to control the counter date: ignore-updates. Setting this to true changes the action to look at created_at instead of updated_at.
For my use-case, I'd like to be able to distinguish between last-commit time and last-comment time. Unless I'm mistaken, there doesn't appear to be a way to do this.
Justification:
I have a CI job that builds a container image on each commit and pushes it to a private image repository. That image repository has a lifecycle rule that deletes the image after X days.
There is also automation that looks for PRs with a particular label and spins up a test environment for testing the branch.
I was hoping to use the stale GH action to remove the label from the PR after X days since the last commit (to line up with the lifecycle rule for the private image repository). In this case, I do not care about comments on the PR
Description:
Looking at the documentation, there appears to only be one flag to control the counter date: ignore-updates. Setting this to true changes the action to look at
created_at
instead ofupdated_at
.For my use-case, I'd like to be able to distinguish between last-commit time and last-comment time. Unless I'm mistaken, there doesn't appear to be a way to do this.
It looks like this functionality was introduced in https://github.com/actions/stale/pull/494 but then reverted in https://github.com/actions/stale/pull/507 but I can't see exactly why that was done.
Justification: I have a CI job that builds a container image on each commit and pushes it to a private image repository. That image repository has a lifecycle rule that deletes the image after X days.
There is also automation that looks for PRs with a particular label and spins up a test environment for testing the branch.
I was hoping to use the stale GH action to remove the label from the PR after X days since the last commit (to line up with the lifecycle rule for the private image repository). In this case, I do not care about comments on the PR
Are you willing to submit a PR?