Skip to content

ci: add stale branch cleanup workflow#77

Merged
VdustR merged 4 commits intomainfrom
ci/stale-branch-cleanup
Mar 11, 2026
Merged

ci: add stale branch cleanup workflow#77
VdustR merged 4 commits intomainfrom
ci/stale-branch-cleanup

Conversation

@VdustR
Copy link
Owner

@VdustR VdustR commented Mar 11, 2026

Summary

  • Add a daily GitHub Actions workflow to automatically delete remote branches inactive for 7+ days
  • Uses crs-k/stale-branches@v8.2.2 with pr-check enabled to skip branches with open PRs
  • Runs daily at 10:00 AM Taiwan time (2:00 AM UTC) with manual dispatch support

Test plan

  • Verify workflow appears in Actions tab
  • Trigger manually via workflow_dispatch to confirm it runs successfully

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

⚠️ No Changeset found

Latest commit: 038a51d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@VdustR
Copy link
Owner Author

VdustR commented Mar 11, 2026

Checklist Verification Report

# Item Category Result
1 Verify workflow appears in Actions tab Human ⏳ Post-merge
2 Trigger manually via workflow_dispatch to confirm it runs successfully Human ⏳ Post-merge

Both items require merge to main first — workflow_dispatch is only available for workflows on the default branch.

Subagent Review Notes

Workflow file looks correct overall. A few observations:

  1. issues: write permission — the crs-k/stale-branches action may use this for logging/notifications; kept consistent with the reference implementation
  2. days-before-stale: 7 + days-before-delete: 7 — branches are deleted on the same run they're detected as stale (no grace period). This is intentional per the reference config
  3. pr-check: true correctly protects branches with open PRs
  4. repo-token not needed — uses the default GITHUB_TOKEN from permissions

🤖 Generated with Claude Code

VdustR and others added 3 commits March 11, 2026 11:14
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VdustR VdustR merged commit 5a5920b into main Mar 11, 2026
4 checks passed
@VdustR VdustR deleted the ci/stale-branch-cleanup branch March 11, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant