Skip to content

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

Open
@klagroix

Description

@klagroix

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 #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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logicneed eyesFeature request needs additional triaging by leads

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions