Skip to content

chore(ci): add stale issue triage workflow#497

Open
EliteCoder18 wants to merge 1 commit into
bitcoindevkit:masterfrom
EliteCoder18:feat/issue-triage-automation
Open

chore(ci): add stale issue triage workflow#497
EliteCoder18 wants to merge 1 commit into
bitcoindevkit:masterfrom
EliteCoder18:feat/issue-triage-automation

Conversation

@EliteCoder18

@EliteCoder18 EliteCoder18 commented Jun 7, 2026

Copy link
Copy Markdown

Description

Part of #410
Closes #386

Adds .github/workflows/stale.yml using actions/stale@v10 to automatically label and close inactive issues and abandoned PRs.

  • Issues inactive for 180 days → stale label → closed after 30 more days
  • PRs inactive for 180 days → stale label → closed after 30 more days
  • Exempt: labels release,security,audit,do-not-close,good first issue for issues and blocked,security,do-not-close for PR
  • Runs weekly on Mondays at 09:00 UTC
  • PR trigger forces dry-run mode automatically for safe CI validation

Notes to the reviewers

  • Recommend a workflow_dispatch dry run with debug_only=true right after merge to preview impact before the Monday cron fires
  • do-not-close and blocked exemption labels don't exist in the repo yet, create them before merging if you want manual override capability

Changelog notice

ci: Automated stale issue and PR triage workflow

Before submitting

@ValuedMammal ValuedMammal added the github_actions Pull requests that update GitHub Actions code label Jun 7, 2026
@ValuedMammal ValuedMammal added this to the Wallet 4.0.0 milestone Jun 7, 2026
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.96%. Comparing base (d8e006f) to head (d466b08).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #497      +/-   ##
==========================================
+ Coverage   80.93%   80.96%   +0.02%     
==========================================
  Files          24       24              
  Lines        5482     5489       +7     
  Branches      247      247              
==========================================
+ Hits         4437     4444       +7     
  Misses        968      968              
  Partials       77       77              
Flag Coverage Δ
rust 80.96% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@notmandatory notmandatory moved this to In Progress in BDK Wallet Jun 8, 2026

@notmandatory notmandatory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

We'll discuss with the team at our next call to confirm the time frames for making something stale make sense to everyone.

Comment thread .github/workflows/stale.yml Outdated
days-before-issue-close: 30
stale-issue-label: 'stale'
stale-issue-message: >
This issue has been inactive for 180 days and labeled **stale** Comment to keep it open. It will be closed in 30 days if there is no activity.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This issue has been inactive for 180 days and labeled **stale** Comment to keep it open. It will be closed in 30 days if there is no activity.
This issue has been inactive for 180 days and labeled **stale**, comment to keep it open. It will be closed in 30 days if there is no activity.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the latest rebase, thanks.

@EliteCoder18 EliteCoder18 marked this pull request as ready for review June 8, 2026 15:23

@Dmenec Dmenec left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK. Just a little nit on close reason.

Comment thread .github/workflows/stale.yml Outdated
This issue has been inactive for 180 days and labeled **stale** Comment to keep it open. It will be closed in 30 days if there is no activity.
close-issue-message: >
Closed after 210 days of inactivity. Feel free to reopen if this is still relevant.
close-issue-reason: completed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not_planned fits an inactivity close better (as mentioned in actions/stale#789), and since it's the default option we could just drop the line.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated.

@ValuedMammal ValuedMammal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be generous and leave PRs open for 180 days. Suggest removing discussion from exempt labels. If there are long running discussions, they can happen in https://github.com/bitcoindevkit/bdk_wallet/discussions

@EliteCoder18 EliteCoder18 force-pushed the feat/issue-triage-automation branch from 0e0f788 to bb1fc1f Compare June 11, 2026 22:21
@EliteCoder18

Copy link
Copy Markdown
Author

I would be generous and leave PRs open for 180 days. Suggest removing discussion from exempt labels. If there are long running discussions, they can happen in https://github.com/bitcoindevkit/bdk_wallet/discussions

@ValuedMammal Thanks, updated the exempt labels. I also adjusted the PR timeout to 180 days.

@github-project-automation github-project-automation Bot moved this from In Progress to Done in BDK Wallet Jun 11, 2026
@EliteCoder18 EliteCoder18 reopened this Jun 11, 2026
@ValuedMammal

Copy link
Copy Markdown
Collaborator

I would be generous and leave PRs open for 180 days. Suggest removing discussion from exempt labels. If there are long running discussions, they can happen in https://github.com/bitcoindevkit/bdk_wallet/discussions

@ValuedMammal Thanks, updated the exempt labels. I also adjusted the PR timeout to 180 days.

Can we update the {stale|close}-pr-message to reflect the 180/210 days of inactivity as well.

@EliteCoder18 EliteCoder18 force-pushed the feat/issue-triage-automation branch from bb1fc1f to 3f18adc Compare June 12, 2026 18:25
@EliteCoder18 EliteCoder18 force-pushed the feat/issue-triage-automation branch from 3f18adc to d466b08 Compare June 16, 2026 20:31
@EliteCoder18

Copy link
Copy Markdown
Author

Updated the workflow based on the Lib Standup discussion:

  • Pinned actions/stale to a commit hash for improved security.
  • Simplified the PR close message.
  • Fixed indentation and removed unnecessary blank lines.

@notmandatory notmandatory moved this from Done to In Progress in BDK Wallet Jun 16, 2026
@notmandatory notmandatory removed the status in BDK Wallet Jun 16, 2026
@notmandatory notmandatory moved this to Needs Review in BDK Wallet Jun 16, 2026

@notmandatory notmandatory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK d466b08

Great first step in helping close old issues and PRs in this repo. If all goes well I'd like to see this workflow in other repos in the org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Automate stale issue triage

4 participants