Skip to content
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

Create feature branch from custom default branch #61

Open
jainsamyak opened this issue Jul 28, 2020 · 6 comments
Open

Create feature branch from custom default branch #61

jainsamyak opened this issue Jul 28, 2020 · 6 comments

Comments

@jainsamyak
Copy link

Hi!
Is there a way to customize the default branch setting from master to some other branch like "dev"?

Thanks,
Samyak.

@osowskit
Copy link
Owner

The current implementation for custom branch names for the GitFlow pattern uses develop - https://github.com/osowskit/atlassian-github-app-addon#gitflow

I haven't heard any other requests to customize the base branch.

@jainsamyak
Copy link
Author

Thanks for your response, but we actually use a branch called dev not develop. Is it possible to change the custom branch name or do we have to make a develop branch?

@osowskit
Copy link
Owner

The quickest solution would be to align with the develop branch name. I'll keep an eye out for other requests for a custom base branch and research how common users have a dev branch

@Bneya
Copy link

Bneya commented Aug 3, 2022

Hi, I know is a little late, but we also use a name different than "develop". We use "development" for all of our repos, so changing that for 30-40 repos is complicated.

@osowskit
Copy link
Owner

Coming back to this request and wondering whether this is strictly to set the default base branch name or if this should allow selecting arbitrary branches.

Options:

  1. All branches for a Repository are created on the same base branch and this is set on the repository config. Configured in the Repository and consistent across issues.
  2. The user enters the default branch as text with validation that it exists before creating the branch. Set on the fly and most flexible to allow multiple branching strategies.
  3. The user can select the base branch from a pre-populated list of existing branches. Most flexible but also potentially inconsistent and slower UI.
  4. The user can select from a preset list of known common branches - master, main, dev, develop, hotfix, etc.

@osowskit
Copy link
Owner

@jainsamyak @Bneya I know it's been a while but I've added the ability to set a custom base branch via the configuration file. I've tested this but let me know if you have any issues with this:

branch_pattern: 3
default_base_branch_name: 'dev'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants