π Create a branch for an issue in public beta #12290
Replies: 137 comments 169 replies
-
this is nice. but i would prefer like gitlab has it, that it creates both a branch and a PR for you. one of the things that annoys me a lot when working on github. i like to take notes about my work in the PR but on github i can't do that before i already have 1 commit on the branch, something which doesn't always happen so fast. |
Beta Was this translation helpful? Give feedback.
-
It would be pretty awesome if it were possible to link an existing branch from another repository within the scope of the organization. Where I work there is a certain repository of tasks where it is not possible to link Pull Requests or Branches because the projects are done in another repository, this would be an excellent addition. |
Beta Was this translation helpful? Give feedback.
-
Just noticed that when I do create a PR from the branch, it automatically links it to the issue and marks the issue for autoclosing when the PR is merged. This is something we don't want in our org so this is a bit annoying. E.g. we already have to write "for #123" in PRs instead of "fixes #123" to avoid the autoclosing, and this adds another thing we have to dodge. |
Beta Was this translation helpful? Give feedback.
-
Finally! That's exactly the feature I've been waiting for - thanks for adding this to GitHub. One small issue: when the issue title contains special characters (e.g., markdown backticks), it would be amazing if branch name could sanitize those out. |
Beta Was this translation helpful? Give feedback.
-
Not within the scope of this feature currently, but in the future it would be neat to see:
Great work guys |
Beta Was this translation helpful? Give feedback.
-
I can't assign existing branch ( |
Beta Was this translation helpful? Give feedback.
-
It would be great if we can configure some sort f regex when it comes to the naming convention of the branch as well as limit or unlimit the name length of the branch For example.
|
Beta Was this translation helpful? Give feedback.
-
Could we get the option to move a projects story to the correct column when using the create branch feature? A story/issue is in the Todo column. Once the branch is created the story is then moved to the "In Progress" column. |
Beta Was this translation helpful? Give feedback.
-
We'd like to see the ability to configure a default repository destination. We've got a two-repo structure for all projects to separate project management and source*. So for a ticket in the On a related note, being able to configure the default branch would also be nice. Something a bit more complex: configuring the default branch source (and branch name) based on labels.
|
Beta Was this translation helpful? Give feedback.
-
Love the feature! But I think I ran into a bug? My issue title is something like "π [Foo] Bar" which suggests a branch name |
Beta Was this translation helpful? Give feedback.
-
This is amazing, it working very good! But have a stranger behavior, when have " - " in name of issue, type "Product - Create Variants", in name of branch get 3 "-", type "52-produtos---create-variants" |
Beta Was this translation helpful? Give feedback.
-
Linking to an existing branch would be great. |
Beta Was this translation helpful? Give feedback.
-
I like this feature, and it would be better if we can add the feature type to the branch name like |
Beta Was this translation helpful? Give feedback.
-
Not sure if I'm allowed to post this again but I guess there will always be features not covered by the platform itself.
FD: I'm the author of that app. I think the current "Create a branch" functionality in the platform is a great starting point for most development workflows (and most likely sufficient for many projects), but if you're looking for more control please consider the Create Issue Branch App/Action. |
Beta Was this translation helpful? Give feedback.
-
β fixedDefault branch name should include numbers from issue titleDefault branch name is currently in format of But in this example, the original issue title is The branch name they want is Can we get number as allowed character in default branch name please? We have the same problem with both client numbers and report numbers being omitted. |
Beta Was this translation helpful? Give feedback.
-
Add a "Open branch with VS Code". |
Beta Was this translation helpful? Give feedback.
-
Please consider placing the "Create branch" button on the same pop-up pane as the rest of the dialog, to make it a bit easier to find and use. The current placement, as shown below, does not feel as intuitive, IMHO. Thank you. (Apologies if I missed something; I'm pretty new to git and GitHub.) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It would also be nice if the default branch name already used "folders" (
A lot of tools support this to give more oversight and group things together |
Beta Was this translation helpful? Give feedback.
-
Two things: One: Seriously, please remember the "What's next" setting. Makes no sense I need to fill it in every other day. Two: Remove the issue number prefix, it adds no value IMHO. |
Beta Was this translation helpful? Give feedback.
-
Need a Default BranchHey there, I'd love to see a more streamlined way to choose the default branch when creating a new branch. It would be awesome if I could set my preferred branch (like dev) as the default. Right now, I always branch from dev, and other dev team member do so as well. Since merging into main is a separate DevOps task, it would make things smoother for developers if we could customize our default branch. Share if you have any thoughts on this! |
Beta Was this translation helpful? Give feedback.
-
I prefer if we can add a default branch name, because when someone at job wanna create a branch to resolve an issue, they sometimes use the default name instead of use the regular names we used like "fix/this-layout'" or "feat/this-function". i know it's an human error but i'd like if i can create a prefix for this issue in particular, something like take it from the label. for example, this issue has the label bug. then the prefix should be always "fix/", this other has the label feature, then has the prefix "feature/" so we can reduce this error by a lot |
Beta Was this translation helpful? Give feedback.
-
This feature is one of the best changes Iβve ever seen on GitHub. We have a requirement that every merge to main is a PR, and there are occasionally small issues where naming the branch could be the longest part of the work of closing the issue. In our org, branch naming is a meaningless thing to spend effort on, and this lets us invest more of our energy in more productive endeavors. |
Beta Was this translation helpful? Give feedback.
-
I've been extremely happy with this new feature, which starts to address a massive capability gap in GitHub generally. Creating a new issue and then creating a branch off of that issue is a use case I've wanted for years. It's much easier than to do this on the command line, which I've done for years only to get many of my branches and PRs polluted with other completely unrelated files and commits from other devs. I've exercised this feature well over a dozen times without any fuss. I've had much better luck locking my PRs away from other prying Git users then I've ever had before. I like a clean PR, and finally I get to have them more often than not with this feature. I've also found that instead of using often traumatic Git Rebase operations when it DOES happen, a simple Git Reset HEAD~1 usually takes care of the matter. Keep up the good work! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
When selecting an alternate branch as the source, the CSS breaks and the button and feedback link overflow. I'm using a small-screen laptop, which may be contributing to this bug. |
Beta Was this translation helpful? Give feedback.
-
The branch naming format should be customisable and by default I would say it should contain the GH username, so: |
Beta Was this translation helpful? Give feedback.
-
I see that when merging PRs from Android Studio (Ladybug) the issue isn't closed when the PRs is merged into a another branch. Will this only function when the PRs are merged into master ? So then, I need to close them manually in github web. |
Beta Was this translation helpful? Give feedback.
-
Please bring back the loading indicator when clicking "Create branch" -- often times I thought I hadn't click, and had to click again (which then closes the modal sometimes) |
Beta Was this translation helpful? Give feedback.
-
It would be really helpful if a branch linked to the original issue also appeared as a linked branch in all duplicate issues. |
Beta Was this translation helpful? Give feedback.
-
In an issue, you can now create a branch for that issue and start work right away. In the sidebar of an issue, branches connected to the issue are shown in the "Development" section, which has replaced "Linked pull requests". When you create a pull request for one of these branches, it is automatically linked to the issue. You can learn more about the functionality in our documentation.
Addresses github/roadmap#218 on our public roadmap.
We can't wait for you to try it out! Let us know what you think here in Discussions.
Beta Was this translation helpful? Give feedback.
All reactions