{"id":241417,"date":"2023-02-23T08:00:33","date_gmt":"2023-02-23T16:00:33","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=241417"},"modified":"2023-02-21T15:14:17","modified_gmt":"2023-02-21T23:14:17","slug":"reference-github-issues-and-pull-requests-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/reference-github-issues-and-pull-requests-in-visual-studio\/","title":{"rendered":"Reference GitHub Issues and Pull Requests in Visual Studio"},"content":{"rendered":"<p>We\u2019re excited to announce the preview release of linking GitHub Issues. With Visual Studio 2022 17.6 Preview 1 you can now mention your issues in the commit message box in the Git Changes window.<\/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 Visual Studio 2022 Preview<\/a><\/div><\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/PavkDh8eV7s\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Speed up your workflow by linking your related work items directly in Visual Studio. You can use the related items to get more context from the Git Repository window. Learn more about how to leverage this feature below.<\/p>\n<h3>Reference Your Related Items<\/h3>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues.png\"><img decoding=\"async\" class=\" wp-image-241420\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues-300x205.png\" alt=\"Reference Github Issues\" width=\"423\" height=\"289\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues-300x205.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues-1024x700.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues-768x525.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/reference-github-issues.png 1326w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a><\/p>\n<p>Building on the existing Azure DevOps work item support, we\u2019ve enabled the same experience with GitHub. To try it out:<\/p>\n<ol>\n<li>Type # or click the \u2018#\u2019 button in the commit message box<\/li>\n<li>The dropdown list includes the most recently opened issues and pull requests that the current user was assigned to, commented on, authored, or was mentioned in<\/li>\n<li>Select the item you&#8217;d like to reference<\/li>\n<li>From the Related Work Items section, you can easily open the items in the web<\/li>\n<\/ol>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/Open-a-Related-Work-Item.png\"><img decoding=\"async\" class=\"alignnone wp-image-241421\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/Open-a-Related-Work-Item-300x131.png\" alt=\"Open a Related Work Item\" width=\"378\" height=\"165\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/Open-a-Related-Work-Item-300x131.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/Open-a-Related-Work-Item.png 723w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/><\/a><\/p>\n<h3>Get Access to Issues<\/h3>\n<p>The feature is on by default in Preview, and it can be toggled from the Preview Features page in settings.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/github-issues-preview-setting.png\"><img decoding=\"async\" class=\" wp-image-241419\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/github-issues-preview-setting-300x116.png\" alt=\"Github Issues preview settings\" width=\"522\" height=\"202\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/github-issues-preview-setting-300x116.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/github-issues-preview-setting-768x296.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/github-issues-preview-setting.png 836w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/a><\/p>\n<p>Additionally, if you aren\u2019t signed into GitHub to view the issues, a message will prompt you to sign in.<\/p>\n<h3>Understand the Previous Commits Better in History<\/h3>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails.png\"><img decoding=\"async\" class=\" wp-image-241418\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-300x156.png\" alt=\"Related Work Items in Commit Details\" width=\"523\" height=\"272\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-300x156.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-1024x534.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-768x400.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-1536x800.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/02\/CommitDetails-2048x1067.png 2048w\" sizes=\"(max-width: 523px) 100vw, 523px\" \/><\/a><\/p>\n<p>When investigating past commits in the Git Repository window, you can view linked issues and pull requests in the Commit Details pane.<\/p>\n<ul>\n<li>First, double-click on the commit in the Git Repository Window to open the Commit Details<\/li>\n<li>Then, find the Related Work Items on the right side of the panel with the list of Changes<\/li>\n<\/ul>\n<p>You\u2019ll get additional context when perusing Git history to understand why changes have occurred.<\/p>\n<p>If the section doesn\u2019t show, please verify that your account setting credentials are up to date.<\/p>\n<h3>Engage with us<\/h3>\n<p>Without your great feedback and suggestions, we wouldn\u2019t be able to deliver the features you\u2019re looking for! Please continue letting us know how we can improve Visual Studio and let us know what you think about this feature.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/www.research.net\/r\/GHIssues\" target=\"_blank\">Share Your Feedback<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re excited to announce the preview release of linking GitHub Issues. With Visual Studio 2022 17.6 Preview 1 you can now mention your issues in the commit message box in the Git Changes window. Speed up your workflow by linking your related work items directly in Visual Studio. You can use the related items to [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":241420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[431,4381,6885,6884],"class_list":["post-241417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-git","tag-github","tag-github-issues","tag-work-items"],"acf":[],"blog_post_summary":"<p>We\u2019re excited to announce the preview release of linking GitHub Issues. With Visual Studio 2022 17.6 Preview 1 you can now mention your issues in the commit message box in the Git Changes window. Speed up your workflow by linking your related work items directly in Visual Studio. You can use the related items to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/241417","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=241417"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/241417\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/241420"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=241417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=241417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=241417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}