This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
Introducing pre-start feature and bugfix name filtering #464
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Pre-start
NAME
filtering forfeature
andbugflix
flows.This mostly replicates the pre-start
VERSION
filtering performed forrelease
,hotfix
andsupport
flows, to facilitate standardised naming - to your spec - for features and bugfixes that most tooling can work with.Motivation
Many of us developers are at least familiar with JIRA - or similar management tools - and, where possible, may leverage any integrations possible to facilitate a smooth workflow.
Different tools and integrations can not all handle the same free-form feature and bugfix branch names; one tool might handle
[
/]
brackets fine, the next might meltdown... the meltdown possibilities are endless.What would be nice would be to copy the title of your JIRA ticket and use that as the feature/bugfix name, but have it automatically whipped into shape that all tools and integrations are happy.
An example developer setup
I tend to replicate this setup at any and every client possible:
[{id}] {summary}
${id}-${summary}
, replace space with_
(undescore)[{id}] {summary}
(server config)[A-Z]+\-\d+
mapping to JIRAHow that works
With this setup, from IntelliJ I can open or switch to a task assigned to me in JIRA and it will mostly do the right thing.
If for whatever reason, the BA, Product Owner or Scrum Master created a JIRA with weirdness in the name, it could all or partially meltdown... or at least look weird in IntelliJ and weirder still in the Terminal shell e.g. with
PS1
command prompt integration enabled.The hope for
NAME
filteringThe hope is that Git Flow and these new
NAME
filters will have the final say on what the feature or bugfix branch name will be, hence regardless what the orchestrating tool is, that essentially requested a new feature or bugfix be started, it will automatically work with the name Git Flow decides.