Add the ability to distinguish between last commit and last comment dates on a PR #1114
Labels
feature request
New feature or request to improve the current logic
need eyes
Feature request needs additional triaging by leads
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 #494 but then reverted in #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?
The text was updated successfully, but these errors were encountered: