REQUIRES 1.5.0
The Gitblit Smart Ticket Branches plugin provides tools to automatically cleanup closed ticket branches.
- A ticket hook to delete the ticket/N branch on closing a ticket and to re-create it on re-opening a ticket
- An SSH command to cleanup closed ticket branches
This plugin is referenced in the Gitblit Plugin Registry and you may install it using SSH with an administrator account.
ssh host plugin refresh
ssh host plugin install SmartTicketBranches
ssh host plugin ls
Alternatively, you can download the zip from here manually copy it to your ${baseFolder}/plugins
directory.
The ticket hook is automatic. Just install the plugin and the hook will manage your ticket branches for you automatically.
The SSH command requires administrator permissions.
ssh host stb cleanup ALL|<REPOSITORY> [--dryRun]
ant && cp build/target/SmartTicketBranches*.zip /path/to/gitblit/plugins
/path/to/dev/gitblit/ant installMoxie
/path/to/dev/SmartTicketBranches/ant && cp build/target/SmartTicketBranches*.zip /path/to/gitblit/plugins