From: Tim Otten Date: Sun, 28 Apr 2013 23:23:15 +0000 (-0700) Subject: givi - When pasting in PR URLs for review, accept URLs from the "Commits" and "Files... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8e9731aca7c6a9418bdfc1046d1d1bcc6180db8;p=civicrm-core.git givi - When pasting in PR URLs for review, accept URLs from the "Commits" and "Files Changed" tabs --- diff --git a/bin/givi b/bin/givi index da9f07da82..1769577571 100755 --- a/bin/givi +++ b/bin/givi @@ -43,7 +43,7 @@ class PullRequest { */ public static function get($url, $repos) { foreach ($repos as $repo => $relPath) { - if (preg_match("/^https:\/\/github.com\/(.*)\/(civicrm-{$repo})\/pull\/([0-9]+)$/", $url, $matches)) { + if (preg_match("/^https:\/\/github.com\/(.*)\/(civicrm-{$repo})\/pull\/([0-9]+)(|\/commits|\/files)$/", $url, $matches)) { list ($full, $githubUser, $githubRepo, $githubPr) = $matches; $pr = new PullRequest();