{"id":243792,"date":"2023-06-19T08:00:27","date_gmt":"2023-06-19T15:00:27","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=243792"},"modified":"2023-06-28T09:03:09","modified_gmt":"2023-06-28T16:03:09","slug":"create-a-pull-request-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/create-a-pull-request-in-visual-studio\/","title":{"rendered":"Announcing Create a Pull Request in Visual Studio"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><iframe title=\"YouTube video player\" src=\"\/\/www.youtube.com\/embed\/ljUZm583Rxk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>We <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/cant-create-pull-request-in-visual-studio-with-new\/1017696\">heard from you<\/a> that you can do 90% of your development workflow in Visual Studio, but then need to rely on the web to create your pull requests. We&#8217;re continually bringing productivity enhancements to Visual Studio and are excited to announce that as of 17.7 preview 2 release. You can now create a pull request without leaving the development environment.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/vs2022preview\" target=\"_blank\">Download the Latest Preview of Visual Studio<\/a><\/div><\/p>\n<h3>Creating a Pull Request<\/h3>\n<p>We\u2019ve been working on integrating more GitHub and Azure DevOps features into the git tooling to supercharge your productivity and collaboration. We know pull requests are highly utilized for code review in both open source and enterprise environments. We hope that wherever and however you work, this new feature will fit into your workflow and help you become more productive than ever.<\/p>\n<p><div class=\"alert alert-success\"><p class=\"alert-divider\"><i class=\"fabric-icon fabric-icon--Lightbulb\"><\/i><strong>Turn on the feature flag<\/strong><\/p>To make sure you can try out the feature, ensure it&#8217;s enabled in Tools &gt; Options &gt; Preview Features &gt; Git Pull Request<\/div><\/p>\n<p>The basic flow follows these steps:<\/p>\n<ol>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/version-control\/git-create-branch?view=vs-2022\"><strong>Create a New Branch. <\/strong><\/a>Before you can create a pull request, you&#8217;ll need to create a new branch for your changes. This keeps your modifications separate from the main branch until they&#8217;re ready to be merged.<\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/version-control\/git-make-commit?view=vs-2022\"><strong>Commit<\/strong><\/a><strong> and <\/strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/version-control\/git-push-remote?view=vs-2022\"><strong>Push<\/strong><\/a><strong> Your Changes.<\/strong>\u00a0Then, you can commit and push your changes as you normally would in the Git Changes window.<\/li>\n<li><strong>Create a Pull Request.<\/strong> Click the link in the notification banner to \u201cCreate a Pull Request.\u201d Alternatively, you can create pull request from a remote branch by navigating to the New Pull Request window via the top-level menu Git &gt; GitHub or Azure DevOps &gt; New Pull Request. Or right click a branch in the Git Repository Window.\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003.png\"><img decoding=\"async\" class=\"alignnone wp-image-243796 size-medium\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003-300x202.png\" alt=\"Create a Pull Request from the notification banner\" width=\"300\" height=\"202\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003-300x202.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003-1024x688.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003-768x516.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image003.png 1073w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image002.png\"><img decoding=\"async\" class=\"alignnone wp-image-243795 size-medium\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image002-268x300.png\" alt=\"Create a Pull Request from the top level menu\" width=\"268\" height=\"300\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image002-268x300.png 268w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image002-768x858.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image002.png 808w\" sizes=\"(max-width: 268px) 100vw, 268px\" \/><\/a><\/li>\n<li>Select the branch that you want to merge into the original repository and give your pull request a descriptive title and description. The diff view on the right allows you to see all your changes as you&#8217;re typing.<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006.png\"><img decoding=\"async\" class=\"alignnone wp-image-243797 size-medium\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006-300x214.png\" alt=\"Create a Pull Request screen\" width=\"300\" height=\"214\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006-300x214.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006-1024x732.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006-768x549.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image006.png 1440w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>You can link work items by referencing them with the <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/reference-github-issues-and-pull-requests-in-visual-studio\/\">issue search<\/a>, by typing # in the description box or pressing the # button in the lower right corner. We\u2019re currently working on adding support for reviewers. Once you&#8217;ve created your pull request, other developers can review your changes and provide feedback.<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image008.png\"><img decoding=\"async\" class=\"alignnone wp-image-243798 size-medium\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image008-163x300.png\" alt=\"Create a Pull Request issue search\" width=\"163\" height=\"300\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image008-163x300.png 163w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/06\/image008.png 527w\" sizes=\"(max-width: 163px) 100vw, 163px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li><strong>Making Updates and Edits<\/strong>: One of our current limitations means you\u2019ll need to use the web interface to make additional edits to the title, description, reviewers, and linked work items. Once you push new changes to your branch, they will automatically update the pull request in the web.<\/li>\n<\/ol>\n<h3>Looking Forward<\/h3>\n<p>As a highly requested integration, the process of developing the pull request experience is an ongoing collaborative effort between our development team and the Visual Studio community. We received <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/cant-create-pull-request-in-visual-studio-with-new\/1017696\">a lot of feedback<\/a> from users who were looking for a more streamlined way to create pull requests, and we performed a series of user studies and survey rounds to get at the primary pain points in this experience.<\/p>\n<p>We\u2019re not done with the pull request experience, and we need your feedback to help drive our development. Some of our next steps include:<\/p>\n<ul>\n<li>Allowing users to add reviewers and required reviewers<\/li>\n<li>Markdown support for the description box<\/li>\n<li>Viewing and tracking your pull requests inside Visual Studio<\/li>\n<\/ul>\n<p>Please share your thoughts on the feature, and what you\u2019re looking forward to the most in this survey.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/CreatePR\" target=\"_blank\">Take the survey<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; We heard from you that you can do 90% of your development workflow in Visual Studio, but then need to rely on the web to create your pull requests. We&#8217;re continually bringing productivity enhancements to Visual Studio and are excited to announce that as of 17.7 preview 2 release. You can now create a [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":239569,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[],"class_list":["post-243792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio"],"acf":[],"blog_post_summary":"<p>&nbsp; We heard from you that you can do 90% of your development workflow in Visual Studio, but then need to rely on the web to create your pull requests. We&#8217;re continually bringing productivity enhancements to Visual Studio and are excited to announce that as of 17.7 preview 2 release. You can now create a [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/243792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/98326"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=243792"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/243792\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/239569"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=243792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=243792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=243792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}