cloudposse / cloudposse/github-action-atmos-component-updater

Clean up State Branches

Open
#20 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) or visit our [Slack Archive](https://archive.sweetops.com/).

[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

## Describe the Feature

The component updater creates and orphans a lot of branches. Any PR that is not merged and is _closed_ creates a stale branch.

Add an (optional) step to the component updater workflow to clean up stale branches

## Expected Behavior

The component updater should include an option to regularly clean up stale branches in the same workflow

## Use Case

Clean up stale branches every night

## Describe Ideal Solution

No persistent stale branches created by this action

## Alternatives Considered

Use another tool on a schedule to clean up stale branches. Examples
- https://github.com/beatlabs/delete-old-branches-action
- https://github.com/marketplace/actions/stale-branches
- many more from googling

## Additional Context

n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.