actions / actions/stale

Restart count days-before-stale only for PR/issue author

Open
#1,024 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
1.7k
Forks
434
PR merge metrics
No merged PRs in 30d

Description

Description:
The days-before-stale option will restart the count if there is a new update in the pull request or issue even if the update comes from the author or any other user.

Justification:
Sometimes we make push force to the main branch. This "push force" will update all the open pull requests with a:

Screenshot from 2023-06-01 14-01-54

This makes the days-before-stale option restart the count in the open pull request even though that has been not touched by the author.

Could be great to have the option to make the days-before-stale option to restart the count only when there is an update from the pull request author or an option to exclude this kind of event from the counter.

Are you willing to submit a PR?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the days-before-stale option detects updates on pull requests and issues, including updates caused by force-pushing to the main branch. Define done as restarting the counter only for activity from the pull request or issue author, or as providing an option to exclude these external events, with behavior covered for both issues and pull requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.