{"id":245626,"date":"2023-11-20T08:00:37","date_gmt":"2023-11-20T16:00:37","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=245626"},"modified":"2023-12-04T13:38:35","modified_gmt":"2023-12-04T21:38:35","slug":"create-a-pull-request","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/create-a-pull-request\/","title":{"rendered":"Create a Pull Request with Summary Difference View Available in GA"},"content":{"rendered":"<p>You can now create a pull request in the 17.8 release of Visual Studio. With over 280 votes and 60 comments in <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/cant-create-pull-request-in-visual-studio-with-new\/1017696\">Developer Community<\/a>, integrating create a pull request has been a highly suggested feature with community involvement to make it happen. We\u2019ve improved on the pull request <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/create-a-pull-request-in-visual-studio\/\">preview feature released in 17.7 preview 2. <\/a>You can now leverage the summary difference view, write your description with the Markdown, and add your reviewers.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download Visual Studio<\/a><\/div><\/p>\n<h3>Adding Create a Pull Request to the IDE<\/h3>\n<p>Pull requests are an essential tool in GitHub, Azure DevOps, and other Git hosting providers for code review. These reviews help catch issues in new features and allow teammates to share their experience with different regions of the codebase \u2013 improving the health of the codebase overall.<\/p>\n<p>Since pull requests are vital for development, creating them should be easy. Visual Studio helps you stay focused by letting you create a pull request from the IDE, without switching to the browser or another tool.<\/p>\n<p>You can access the new feature by following the link in the notification banner to \u201cCreate a Pull Request\u201d after you\u2019ve pushed any changes to your remote branch. Alternatively, you can create a pull request from any remote branch by navigating 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.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-infobar.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-245629\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-infobar.png\" alt=\"Create pr infobar\" width=\"300\" height=\"202\" \/><\/a><\/p>\n<p>Note: To make sure you can try out the feature, ensure it&#8217;s enabled in Tools &gt; Options &gt; Preview Features &gt; Pull Request.<\/p>\n<h3>Summary Difference View<\/h3>\n<p>The new summary difference view allows you to review your code changes before submitting them. You can focus on the changed lines between your branch with the target branch. This makes it easy to review large files or files with many unchanged lines.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff.png\"><img decoding=\"async\" class=\"alignnone wp-image-245627\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff-300x184.png\" alt=\"Summary difference view option\" width=\"517\" height=\"317\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff-300x184.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff-1024x628.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff-768x471.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff-1536x942.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-summary-diff.png 1871w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/a><\/p>\n<p><div class=\"alert alert-success\"><p class=\"alert-divider\"><i class=\"fabric-icon fabric-icon--Lightbulb\"><\/i><strong>Use Summary Option Everywhere <\/strong><\/p>You can also leverage the summary difference view in all the comparison views. For example, you can focus on only the changed lines when [comparing files from solution explorer](https:\/\/devblogs.microsoft.com\/visualstudio\/new-in-visual-studio-compare-files-with-solution-explorer\/) or when reviewing changes from the Git Changes window. It also works with inline mode or side by side mode.<\/div><\/p>\n<h3>Markdown support<\/h3>\n<p>You can now use markdown syntax to format your pull request description from Visual Studio. This gives you a simple way to add style and structure to your text, such as headings, lists, and checkboxes. Try it by typing the markdown symbols in the Description box and preview by clicking on the Preview tab.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown.png\"><img decoding=\"async\" class=\"alignnone wp-image-245628\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown-300x157.png\" alt=\"Create pr markdown preview\" width=\"610\" height=\"319\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown-300x157.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown-1024x537.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown-768x403.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown-1536x806.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/10\/git-create-pr-markdown.png 1870w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Reviewers<\/h3>\n<p>You can now add reviewers to your pull request from Visual Studio. You can search for reviewers by name on Azure DevOps, or username on GitHub, and select one or more reviewers from the list.<\/p>\n<h3>Engage with Us!<\/h3>\n<p>We hope you enjoy using the new features and find them useful for your code review workflow. We would love to hear your feedback and suggestions on how to improve the create a pull request feature or the <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Full-integration-of-Pull-Requests-in-VS2\/1576559#T-ND10440141\">pull request integrations in Visual Studio<\/a> overall.<\/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\">Create a Pull Request Feedback<\/a><\/div><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now create a pull request in the 17.8 release of Visual Studio. With over 280 votes and 60 comments in Developer Community, integrating create a pull request has been a highly suggested feature with community involvement to make it happen. We\u2019ve improved on the pull request preview feature released in 17.7 preview 2. [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[],"class_list":["post-245626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio"],"acf":[],"blog_post_summary":"<p>You can now create a pull request in the 17.8 release of Visual Studio. With over 280 votes and 60 comments in Developer Community, integrating create a pull request has been a highly suggested feature with community involvement to make it happen. We\u2019ve improved on the pull request preview feature released in 17.7 preview 2. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/245626","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=245626"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/245626\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=245626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=245626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=245626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}