{"id":1371,"date":"2018-06-05T17:35:52","date_gmt":"2018-06-05T23:35:52","guid":{"rendered":"http:\/\/bateru.com\/news\/?p=1371"},"modified":"2018-06-16T19:49:41","modified_gmt":"2018-06-17T01:49:41","slug":"dev-tip-search-for-open-prs-in-github-for-any-user","status":"publish","type":"post","link":"https:\/\/bateru.com\/news\/2018\/06\/dev-tip-search-for-open-prs-in-github-for-any-user\/","title":{"rendered":"Dev Tip: Search for open PRs in Github for any user"},"content":{"rendered":"<p>Keeping track of all your open pull requests, PRs, in <a href=\"https:\/\/www.github.com\">Github<\/a> is hard.<br \/>\nThis problem is multiplied when you contribute to multiple projects.<br \/>\nIt&#8217;s even worse when you&#8217;re one of the few with merge rights to a popular repository with a lot of activity.  <\/p>\n<p><div class=\"imagecaptioneasy imagecaptioneasy_nter size-full wp-image-1379\" style=\"width:px;\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"653\" src=\"http:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/neovim_pulse_rate.png\" alt=\"neovim pulse on github.com\" class=\"aligncenter size-full wp-image-1379\" srcset=\"https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/neovim_pulse_rate.png 1008w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/neovim_pulse_rate-300x194.png 300w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/neovim_pulse_rate-768x498.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><br style=\"clear:both\" \/><span>neovim pulse on github.com<\/span><\/div><\/p>\n<p>Luckily, Github has advance search features that allow you to instantly find open PRs from a user.<br \/>\n<b>Here&#8217;s how.<\/b><\/p>\n<p>1. Go to <a href=\"https:\/\/github.com\/search\">https:\/\/github.com\/search<\/a><br \/>\n2. Find the username of the person on github. Their username is on their github profile under their name.<br \/>\n3. Search <code><\/p>\n<pre>is:open is:issue author:${USER_NAME}<\/pre>\n<p><\/code><br \/>\nExample: <code><\/p>\n<pre>is:open is:issue author:LarryBattle<\/pre>\n<p><\/code><br \/>\nGithub search for <a href=\"https:\/\/github.com\/search?utf8=%E2%9C%93&#038;q=is%3Aopen+is%3Aissue+author%3ALarryBattle&#038;ref=simplesearch\">my open PRs<\/a>.<\/p>\n<p><div class=\"imagecaptioneasy imagecaptioneasy_nter size-full wp-image-1376\" style=\"width:px;\"><img loading=\"lazy\" decoding=\"async\" width=\"1239\" height=\"606\" src=\"http:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/search_results_for_open_prs_lbattle.png\" alt=\"Larry's Open Prs\"  class=\"aligncenter size-full wp-image-1376\" srcset=\"https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/search_results_for_open_prs_lbattle.png 1239w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/search_results_for_open_prs_lbattle-300x147.png 300w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/search_results_for_open_prs_lbattle-768x376.png 768w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/search_results_for_open_prs_lbattle-1024x501.png 1024w\" sizes=\"auto, (max-width: 1239px) 100vw, 1239px\" \/><br style=\"clear:both\" \/><span>Larry's Open Prs<\/span><\/div><\/p>\n<p>I&#8217;ve used this search recently to close a few PRs back from 2012!<br \/>\n<div class=\"imagecaptioneasy imagecaptioneasy_nter size-full wp-image-1375\" style=\"width:px;\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"718\" src=\"http:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/closed_old_pr.png\" alt=\"Closed Old PR\"  class=\"aligncenter size-full wp-image-1375\" srcset=\"https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/closed_old_pr.png 971w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/closed_old_pr-300x222.png 300w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2018\/06\/closed_old_pr-768x568.png 768w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><br style=\"clear:both\" \/><span>Closed Old PR<\/span><\/div><br \/>\n<b>Pro Tip:<\/b><br \/>\nIf your organization uses Github, then make sure the developers close out PRs or reassign it to someone else before they leave the company.<\/p>\n<p><b>More info:<\/b><br \/>\n&#8211; <a href=\"https:\/\/github.com\/search\/advanced\">Github Advance Search<\/a>, useful for creating complex queries<br \/>\n&#8211; <a href=\"https:\/\/help.github.com\/articles\/about-searching-on-github\/\">Searching on github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keeping track of all your open pull requests, PRs, in Github is hard. This problem is multiplied when you contribute to multiple projects. It&#8217;s even worse when you&#8217;re one of the few with merge rights to a popular repository with a lot of activity. neovim pulse on github.com Luckily, Github has advance search features that &hellip; <a href=\"https:\/\/bateru.com\/news\/2018\/06\/dev-tip-search-for-open-prs-in-github-for-any-user\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Dev Tip: Search for open PRs in Github for any user<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[189,16],"class_list":["post-1371","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-github","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/comments?post=1371"}],"version-history":[{"count":9,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1371\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1371\/revisions\/1383"}],"wp:attachment":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/media?parent=1371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/categories?post=1371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/tags?post=1371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}