actions / stale

Marks issues and pull requests that have not had recent interaction
MIT License
1.34k stars 353 forks source link

Add the ability to distinguish between last commit and last comment dates on a PR #1114

Open klagroix opened 9 months ago

klagroix commented 9 months ago

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 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.

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?

nikolai-laevskii commented 9 months ago

Thank you for the feature request. We will consider implementing it and return with an update!