Update general functionality
- select branches whose name matches our ticket pattern
- look up the ticket and check the status
Write a test that can:
- ignores open tickets
- print any closed ticket-branches, and fail
- add to hudson
would be nice if this could run for all our repos (3 for allura, also sfpy & sfx)
so this would fail for the unmerged branches of closed tickets?
That's the idea
forge:dev -- scripts/test-branches-against-tickets.py
requires oauth credentials to run and will use the ones it finds in ~/.forgepushrc.
prints message for each branch that does not match its ticket's state, e.g., closed ticket does not match unmerged branch; open ticket does not match merged branch. If there were mismatches, exists with status 1. This script will make you want to delete branches sooner. It is suitable to be used as a test in Hudson. It will work on whatever repository your working dir is in when you run it. It always uses tickets from sf.net/p/allura/tickets/.
Output looks like this
...wrapping supplied by Allura, sorry. That doesn't happen when you run it.