actions / actions/stale

Updates to PRs linked to an issue should clear the stale attribute

Open
#804 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The problem

  1. actions/stale said 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
  2. I made a PR that would close the issue https://github.com/primer/view_components/issues/1033#ref-pullrequest-1353408921
  3. The bot did not remove its stale marker
  4. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.