Add support for badges per git branch
Extract AbstractBadgeAction to remove duplication