Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Feature Request: Workflow to create branch from issue #1125

Closed
krnlde opened this issue Nov 16, 2017 · 134 comments
Closed

Feature Request: Workflow to create branch from issue #1125

krnlde opened this issue Nov 16, 2017 · 134 comments
Labels
issue-transfer issues parity Features that GitHub is missing, but competitors implement; also, see [Migration] project management pm / agile related concepts pull-requests WIP workflow

Comments

@krnlde
Copy link

krnlde commented Nov 16, 2017

Coming from Jira I really miss the possibility to create a [feature|hotfix] branch that matches the current issue with its name and ID. I suggest to put this workflow in the sidebar of an issue where the Assignees, Labels and Milestones reside.

The following workflow would be nice:

  1. Create an issue "My Example Issue" with id 42
  2. See a "Create Branch for Issue"-button in the sidebar
  3. Click on it and choose where to branch from (e.g. develop)
  4. define the branch-type according to gitflow (feature/hotfix)
  5. Create the branch whose name will be inferred from the issue's information feature/my-example-issue-42 or choose your own name
  6. git fetch on your local machine and see the new branch
  7. switch to it, make the necessary changes described in the issue
  8. See the number of commits to this issue in the sidebar
  9. Create a pull-request for the branch directly from the sidebar
@rorybot
Copy link

rorybot commented Feb 27, 2018

I'm astounded this doesn't exist already.

@rstockm
Copy link

rstockm commented Mar 4, 2018

And tie it to the "Projects" board, as well. There are so many loose ends on GitHub in terms of workflow.

@galvani
Copy link

galvani commented Mar 9, 2018

I have just spend 30 minutes searching how to do it :-) I thought I am dumb.

@andrewslavin
Copy link

andrewslavin commented Mar 11, 2018

@galvani +1.

I raised an issue on an open-source project, the author accepted it as a bug and asked if I could contribute by raising a PR. Coming from Jira/Bitbucket experience like @krnlde, I spent 30 min looking for a way to start a branch from my issue, and eventually ended up here...

@shubhamkulkarni
Copy link

I come from JIRA as well and use the same workflow as mentioned by @krnlde, which is much efficient.
How can we take this issue forward and request for the same?

@paesku
Copy link

paesku commented Mar 19, 2018

used to gitlab every day, it surprised me to end up in this thread 👀 .

@kellymaker
Copy link

+1 on this. May be tricky as a Project is only loosely coupled....

@jkrenge

This comment has been minimized.

1 similar comment
@gs377209

This comment has been minimized.

@krnlde
Copy link
Author

krnlde commented Mar 27, 2018

Please stop spamming this issue with +1s. There is a thumbsup/-down feature for this if you really like to share your interest.

@m3ck0
Copy link

m3ck0 commented May 21, 2018

I needed kinda same behavior described, and recently came up with solution which may partially solve the problem, In addition I want to note that this no totally/exactly solves the problem originally described, but it may partially do it:

  1. Open issue ("remove @-notification limit #23" for example)
  2. Locally create branch from desired branch, as usual I name branch i{issue_number} (i23)
  3. Once, i've done fixes for issue I create pull request and in the pull request body write "fixes remove @-notification limit #23"
  4. This automatically closes "issue remove @-notification limit #23"

this process is described in this post and really helped me to partially automate such workflow. hope it helps you too

@maxdmayhew
Copy link

Please!

and include it in enterprise!

@MichaelMausbach
Copy link

Coming from gitlab, I couldn't believe that this function is not included in github. I would be great to have it.

@KevinMind

This comment has been minimized.

@KevinMind
Copy link

Though. Someone could use the api to build this feature..... ;) See netlify cms. Any takers?

@RafaelVillar

This comment has been minimized.

@m3ck0
Copy link

m3ck0 commented Jul 3, 2018

@KevinMind can you suggest some starting point?

@krnlde
Copy link
Author

krnlde commented Jul 4, 2018

More specific: How do you integrate UI elements in the sidepanel to have a button that triggers the API?
AFAIK it is only possible to integrate via githooks.

@othreecodes
Copy link

This doesn't exist yet?
😞

@galvani
Copy link

galvani commented Aug 13, 2018

it does not

@stritti
Copy link

stritti commented Aug 14, 2018

every time I search this feature again ...

@klaussemarsse
Copy link

tried the same and ended up here. It would be really a good one feature

@magick93
Copy link

Gitlab FTW.

Github - time to up your game!

@zteater
Copy link

zteater commented Aug 26, 2018

This is OOTB functionality with your competitors (GitLab, BitBucket + Jira, VersionOne).

@sinelga

This comment has been minimized.

@mtumilowicz

This comment has been minimized.

@noebrito

This comment has been minimized.

@siulcode
Copy link

I am shocked by knowing that this feature does not exist.

@Falnesio
Copy link

Falnesio commented Sep 3, 2020

https://blog.axosoft.com/gitkraken-git-gui-v7-3-github-issues

If you use GitHub or GitHub Enterprise issue trackers, you can now accomplish the following actions directly from the GitKraken Git GUI:

View GitHub issues 
Create filters for GitHub issues 
View GitHub issue details
Create branches tied to GitHub issues <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Edit the assignee(s) of a GitHub issue*
Edit the state of a GitHub issue*
Add/remove labels on a GitHub issue*
Comment on a GitHub issue*
Create new GitHub issues* 

*Paid features.

@endiesworld
Copy link

Create github branch from issue.

this is still not a thing as at 21st of Sept 2020.

@krnlde
Copy link
Author

krnlde commented Sep 22, 2020

Still an issue in the private fork of issac and not github itself... 🧠

@pilkch
Copy link

pilkch commented Oct 7, 2020

Do the github developers use github?

@TomKJ
Copy link

TomKJ commented Oct 9, 2020

Dear Github Community the "Create github branch from issue"-Feature would make things much easier.
I used also Bitbucket in my last company and was surprised that this feature doesn´t exist here in Github.

@alexmacniven
Copy link

I don't think this is a feature we're going to see on the web interface.

It has been implemented in the github extension for VSCode. I think it's far more likely to be implemented in cli/cli which is in (very) active development right now.

@miniscruff
Copy link

For those who have the new github cli I made an alias to create a branch locally.
gh alias set start 'gh issue view $1 | head -n 1 | cut -c8- | tr "[:upper:]" "[:lower:]" | sed "s/ /-/g" | (echo -n $1- && cat) | xargs git checkout -b' --shell ( note that I am sure this could be simpler )
And then you can just do gh start <issue number>.

@SmaugOfErebor
Copy link

If I wasn't a freeloading user, I would totally complain that this feature doesn't exist.

@MagicUnderHood
Copy link

I'm still waiting for this feature

@zteater
Copy link

zteater commented Nov 9, 2020

Now that the CLI is out, it seems like a logical place for this feature
https://cli.github.com/manual/gh_issue

@ghost
Copy link

ghost commented Nov 10, 2020

Company is making the switch from GitLab to GitHub and can't believe this isn't a feature ..

@cosmikwolf
Copy link

This is my favorite feature of GitLab

@dioncodes
Copy link

Switched from GitHub to a self-hosted GitLab instance due to this missing feature... I don't understand why they still haven't implemented this feature yet.

@ghost
Copy link

ghost commented Dec 22, 2020

Coming from Gitlab and Jira, this is a basic part of my daily workflow, please consider adding it

@bumbeishvili
Copy link

I just created Tampermonkey script for this feature

Here are the source and installation instructions - https://github.com/bumbeishvili/create-branch-from-issue

analytics

@tjwrona
Copy link

tjwrona commented Jan 2, 2021

I just want to point out that this issue has the most likes out of every other issue on here and is over 3 years old... It should really be getting more attention.

This is officially the most wanted feature by the entire GitHub community.

@mcsantiago
Copy link

Wait, this is not a thing yet? I got so used to linking my branches in Jira that it did not occur to me that Github hasn't caught up.

@bumbeishvili
Copy link

Update about the extension - https://github.com/bumbeishvili/create-branch-from-issue

Awesome people added new functionalities to the script, now it's possible to choose source branch
Branch

@ajRiverav
Copy link

ajRiverav commented Jan 30, 2021

potential alternative: https://github.com/marketplace/actions/create-issue-branch (source @ https://github.com/robvanderleek/create-issue-branch)

@wasartin
Copy link

wasartin commented Feb 3, 2021

I find it hard to believe that the people at Github use their own project board. Because if they did, then they would have implemented this feature already.

@Ajisaputrars
Copy link

It is 2021 and still no such feature in GitHub?

@Shinigami92
Copy link

We should all move on to https://github.com/github/feedback/discussions instead of spamming here and not being heard

This issue should be closed and locked

@ajRiverav
Copy link

ajRiverav commented Feb 26, 2021

We should all move on to github/feedback/discussions instead of spamming here and not being heard

This issue should be closed and locked

agreed. Do you have a link to an existing issue in github feedback? So that people here can up-vote it.

@Shinigami92
Copy link

No, someone should just create one and we can all vote on it

@ajRiverav
Copy link

there we go.
I put it here community/community#3441

Let's all vote it up!

@krnlde
Copy link
Author

krnlde commented Mar 2, 2021

Thank you guys!

Issue now continues over at community/community#3441

@krnlde krnlde closed this as completed Mar 2, 2021
Repository owner locked and limited conversation to collaborators Apr 14, 2021
@michellemerrill michellemerrill unpinned this issue Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue-transfer issues parity Features that GitHub is missing, but competitors implement; also, see [Migration] project management pm / agile related concepts pull-requests WIP workflow
Projects
None yet
Development

No branches or pull requests