isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

Feature Request: Workflow to create branch from issue #1125

Closed krnlde closed 3 years ago

krnlde commented 6 years ago

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 commented 6 years ago

I'm astounded this doesn't exist already.

rstockm commented 6 years ago

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

galvani commented 6 years ago

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

andrewslavin commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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

kellymaker commented 6 years ago

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

jkrenge commented 6 years ago

+1

gs377209 commented 6 years ago

+1

krnlde commented 6 years ago

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

m3ck0 commented 6 years ago

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 ("#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 #23"
  4. This automatically closes "issue #23"

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

maxdmayhew commented 6 years ago

Please!

and include it in enterprise!

MichaelMausbach commented 6 years ago

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

KevinMind commented 6 years ago

Please please please.

KevinMind commented 6 years ago

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

RafaelVillar commented 6 years ago

Wow, yes this is definitely needed. Please.

m3ck0 commented 6 years ago

@KevinMind can you suggest some starting point?

krnlde commented 6 years ago

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 commented 6 years ago

This doesn't exist yet? :disappointed:

galvani commented 6 years ago

it does not

stritti commented 6 years ago

every time I search this feature again ...

klaussemarsse commented 6 years ago

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

magick93 commented 6 years ago

Gitlab FTW.

Github - time to up your game!

zteater commented 6 years ago

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

sinelga commented 6 years ago

It must be done! :)

mtumilowicz commented 6 years ago

Up, up, up, up!

noebrito commented 6 years ago

Please do this!

siulcode commented 6 years ago

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

mpittkin commented 6 years ago

+1 I'm surprised by how much I really, REALLY miss this feature after Jira.

pwujek commented 6 years ago

+1

BenjAzko commented 6 years ago

+1

siulcode commented 6 years ago

Do we need 10,000 signatures for this one to get attention? 😅

junwang-stratus commented 6 years ago

Please make this Github great again!

alx-andru commented 6 years ago

+1

joelchretien commented 6 years ago

+1

Buzzglo commented 6 years ago

+1

highflying commented 6 years ago

+1

martinvelden commented 6 years ago

Would perfectly fit into the automation of the Project Boards as well.

New issue -> To do Create Branch from issue -> In progress Close issue -> Done

This and letting labels interact with the boards (set column, how high up in priority) are the only things I'm missing.

mpittkin commented 6 years ago

That’s a really great idea @martinvelden. That would make it possible to do some really neat things like story mapping. The top level stories with one label, then the next level clearly separated vertically, then so on. If you can then select issues by label and create a release out of those issues there’s your whole story mapping workflow.

That might be a nice feature too, creating a release based on a label, I know that’s kind of what a release is already, but that would fit in with the user story mapping approach nicely.

nerdmax commented 5 years ago

+1. Come from gitlab, really miss this feature.

andrewmcallister commented 5 years ago

+1

raditotev commented 5 years ago

+1

AkshayBudhiraja commented 5 years ago

We could really use this functionality in our team's workflow as well, as I imagine other teams can as well. Coming from JIRA, this is the one thing that we are missing.

sj-porter-dev commented 5 years ago

Being able to create a branch from an issue (and a branch from an issue on the project board) is behavior that I expected would be there by default, this should definitely be prioritized.

adumont commented 5 years ago

Over 1 yr after this feature is still not implemented?? weird, it sounds like a basic feature.

galvani commented 5 years ago

it's been labeled a month ago, it seems there is coming some progress now.

zpalazov commented 5 years ago

+1

johnfoland commented 5 years ago

+1

CraigLager commented 5 years ago

+1 - we've ended up implementing this through a webhook when a label gets applied.

hugoluc commented 5 years ago

+1