From f8e9731aca7c6a9418bdfc1046d1d1bcc6180db8 Mon Sep 17 00:00:00 2001 From: Tim Otten <totten@civicrm.org> Date: Sun, 28 Apr 2013 16:23:15 -0700 Subject: [PATCH] givi - When pasting in PR URLs for review, accept URLs from the "Commits" and "Files Changed" tabs --- bin/givi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- GitLab