-
Notifications
You must be signed in to change notification settings - Fork 3
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tedder - a scrum git branch manager #11
Comments
While it might sound like a good idea, it has its shortcomings.
Said that, if the above workflow works for you, you should keep using it. You could mitigate some of the above with:
|
Like Daniel said there is still risk here. Feature Switches are great and can be really robust and handy. Another option is to use feature branches. Each Feature has its own branch and merges into the sprint branch when the team deems it ready. It should have been tested successfully before going into the sprint branch possibly by being deployed into some development environment to be tested. |
Feature branches don't promote early integration. You end up having team A working on a feature that doesn't play nicely with what team B is working on. The last who merges has a hard time reconciling the code. If you decide to go down that route, you should keep your branches small and merge frequently. It requires a lot of discipline. |
Background
In my team we have been adopting scrum to manage work items. We set a sprint to be one week length and we have a git sprint branch which is used to release the work done in the sprint.
Why
We do have a naming standard for the sprint branch but it's sometimes violated for some reasons, leading to inconsistent branches. Our naming standard is feature/[yyyy][mm][dd], therefore the branch should be feature/20180809 for the sprint ending in 9th Aug 2018. I do see these kinds of violations:
If more than one developer participates in the sprint, they usually need to hang around asking whether the branch has been created since only one branch needs creating, leading to unnecessary communication and development interruption.
How
Then when you run
tedder
command in your repo, it will compute the branch name based on your specificed template and day. In our exmaple above, it will be feat/[yyyy][mm][dd] with yyyy,mm and dd being substituted with the full year, month and date of next Thursday. It will then check the corresponding remote branch exists or not. If the corresponding remote branch exists, meaning others have created the branch before, it will simple fetch the remote branch and switch to the branch. Otherwiese, it will automatically create the branch for you and push it to remote repo.
You can also set a script in your package.json to use it locally.
Then you can simply do
This will setup the hotfix branch for next Monday for you.
The text was updated successfully, but these errors were encountered: