Updates to PRs linked to an issue should clear the stale attribute
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 434
- PR merge metrics
- No merged PRs in 30d
Description
The problem
actions/stalesaid an issue was stale https://github.com/primer/view_components/issues/1033#issuecomment-1229120056 and marked it as stale https://github.com/primer/view_components/issues/1033#event-7271587943- I made a PR that would close the issue https://github.com/primer/view_components/issues/1033#ref-pullrequest-1353408921
- The bot did not remove its stale marker
- I had to add an extra comment to the issue: https://github.com/primer/view_components/issues/1033#issuecomment-1230436001
The solution
Ideally the bot should be able to recognize that a PR exists and is linked to the issue and remove the stale annotation. As stale-bot runs on a schedule, it can have access to pull requests and can therefore check to see if there are stale-issues with linked PRs and then check to see if those PRs have been touched since it last ran, and then remove the stale notice.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing the scheduled stale-bot run and how it detects linked pull requests and recent PR activity. Done means a stale issue with a linked PR is cleared when that PR has changed since the previous run, without requiring an extra issue comment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100