Project

General

Profile

Actions

Feature #33

closed
CD

Enable automatic branch deletion after PR merges for all repositories

Feature #33: Enable automatic branch deletion after PR merges for all repositories

Added by Client Dashboard about 2 months ago. Updated about 2 months ago.

Status:
Shipped
Priority:
Normal
Assignee:
-
Start date:
06/11/2026
Due date:
% Done:

0%

Estimated time:
spec_ref:

conversation:26

build_status:
build_number:
ci_run_url:
scan_status:
scan_report_url:
deploy_status:
preprod_url:
deployed_at:
branch:
pr_url:
security_key:
severity:
paused:

Description

### Problem
Currently, when a pull request (PR) is merged in any repository, the associated branch remains in the repository. This leads to clutter and requires manual cleanup, which is inefficient and error-prone.

### Context
The client wants to automate branch deletion for **all repositories** under their organization. The requirement is to delete branches **only after they are merged via a PR** (not direct merges) and **exclude long-lived branches** (`main`, `master`, `dev`, `develop`, `preprod`, etc.). Most code hosting platforms (e.g., GitHub, GitLab) support this as a built-in setting.

### Proposed Behaviour
- Automatically delete branches after they are merged via a PR in all repositories.
- Exclude long-lived branches from deletion.
- Ensure the setting is applied consistently across the organization.

## Acceptance criteria
- [ ] Branches merged via PR are automatically deleted in all repositories.
- [ ] Long-lived branches (`main`, `master`, `dev`, `develop`, `preprod`, etc.) are **not** deleted.
- [ ] The setting is enabled at the organization level (or repository level if organization-wide is not possible).
- [ ] Direct merges (non-PR) do not trigger branch deletion.
- [ ] Verify the behaviour in a test repository before rolling out to all repositories.

Actions

Also available in: PDF Atom