We will be attempting a work flow in github where every ticket is a branch off of master.
After the ticket is complete, the work is merged into staging where regression and integration tests are performed before it is merged into master.
A team lead brought up the issue of the old ticket branches after a merge will start to build up.
I found this script and want to know if this would work in our environment. We only want to delete branches that have been merged into master.
post-merge
hook. If that's the case then it's not going to work I'm afraid. – Nucleate