Add ability to archive branches
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
We would like to be able to archive branches, so that they don't show up on the GitLab Branches page by default.
Intended users
Further details
We would like branches to be marked as being archived. When this is done, the branch will not show up on the Branches page Overview, Active, Stale or All tabs. There should be a new Archive tab on the Branches page to show archived branches.
Proposal
- There will be a archive option for each branch, beside the delete option for the branch.
- A user selecting that will get prompted to be sure they want to archive the branch.
Archiving the branch will result in the branch only showing on a new Archived tab on the branches page.- Archiving the branch will create a new tag with the format
archive/{original-branch-name}
then delete the branch - To restore a branch, we will introduce the ability to create a branch from a tag.
- This functionality already exist through the "New branch" flow. The introduction is to have this ability as a modal from the tag item.
Design concepts
Permissions and Security
Only users who have permission to delete a branch can archive the branch.
Edited by 🤖 GitLab Bot 🤖