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

Changing branch name prefix #1886

Open
qeroll opened this issue Feb 6, 2023 · 9 comments
Open

Changing branch name prefix #1886

qeroll opened this issue Feb 6, 2023 · 9 comments

Comments

@qeroll
Copy link

qeroll commented Feb 6, 2023

Hi,

I have integrated Jira with GitHub in order to create branches from Jira.
However, when I use issue_type as part of the branch name it can appear only as bug/ or task/. I would like it to be bugfix for Bugs and feature for Tasks / Story.

Is that at all possible?

@Ryan-Yuanqing-Jiang
Copy link
Contributor

Hi, thanks for using the Github-for-Jira app and reaching out to us!

Just to make sure I understand it correctly: Do you mean if it's possible to change the Jira issue's type according to the branch name prefix entered during creating branches from Jira issue?

If so, we don't currently support this functionality and it's not on our near term roadmap yet. I will keep a note of this in our future feature-requests.

Thanks!

@qeroll
Copy link
Author

qeroll commented Feb 7, 2023

Hi,

I think you might have understood me correctly but just to make sure you do, I'll explain in more detail:

  • After adding the GitHub - Jira App I can use the "Create Branch" button directly from the Jira Issue
  • When I press the button I can change the format of the branch name to: issue_type/issue_key-issue_summary
  • I would like to be able to decide to which text, issue_type translates. For example: task is now "task". I want task to be "feature". Bug should be "bugfix" and not bug and so on.

Is that an option or the string has to be the default which is defined in Jira?

Thanks in advance!

@Ryan-Yuanqing-Jiang
Copy link
Contributor

Thanks for clarifying it!

At the moment we don't support this functionality yet, so it'd be a manual step to change the branch name for the time being.
But I will triage this into our feature request backlog.

Cheers.

@gbsmith
Copy link

gbsmith commented May 2, 2023

Second this!

@Skyppid
Copy link

Skyppid commented Aug 16, 2023

Would be great, we use Git Workflow and need to name branches like this feature/{story-no}/{story-title} for stories and hotfix/{bug-no}/{bug-title} for bugs. Best would be feature/{story-no}/{sub-task-no}/{task-title} for nested tickets.

So a bit more flexibility when configuring the scheme would be nice!

@jkoelle
Copy link

jkoelle commented Aug 24, 2023

Echoing what others have said. We use Git Workflow and it would be helpful for the prefix to be added to the branch name when creating from Jira so that developers don't need to do this manually each time they create a branch.

@jaredtbates
Copy link

Agreed, this is something our team is used to and it would save us time if we could automate the prefixing of branch names.

@rudacs
Copy link

rudacs commented Sep 21, 2023

I agree.
The goal would be to standardize.

Vote +1

@urshess-siga
Copy link

I agree as well. This is the way the Bitbucket integration works, btw.
feature/{story-no}/{story-title} for stories and
hotfix/{bug-no}/{bug-title} for bugs.
So you don't even have to "re-invent the wheel"

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

No branches or pull requests

8 participants