Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

Description

Replaces beatlabs/delete-old-branches-action with fpicalausa/[email protected] in the stale-branches workflow. The new action provides better control over branch exemptions and PR-aware deletion.

Configuration changes:

  • Exempt branches: main, lts, next, release/* via exempt-branches-regex
  • exempt-protected-branches: false - allows deletion of protected test branches
  • dry-run: true by default for safer operation
  • ignore-branches-with-open-prs: true - protects branches with active PRs
  • 180-day staleness threshold with immediate deletion once marked
  • Removed unnecessary checkout step

Breaking Changes

None. This is a workflow configuration change only.

Reviewer Guidance

Verify the regex pattern ^(main|lts|next|release/.*)$ covers all intended protected branches. The workflow will run in dry-run mode by default until explicitly disabled via workflow dispatch input.

Original prompt

On stale-branches.yml, Replace the stale branches action in this workflow with https://github.com/fpicalausa/remove-stale-branches. Make sure
that main, lts, next, and release branches are all exempted, but set exempt-protected-branches to false, since we have
protected test branches that are eligible for deletion. Set dry-run to true by default.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 11, 2025
Copilot AI changed the title [WIP] Update stale branches action in workflow Replace stale branches action with fpicalausa/remove-stale-branches Nov 11, 2025
Copilot AI requested a review from tylerbutler November 11, 2025 02:09
Copilot finished work on behalf of tylerbutler November 11, 2025 02:09
@github-actions github-actions bot added area: build Build related issues base: main PRs targeted against main branch labels Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build related issues base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants