Skip to content
Snippets Groups Projects
Commit f8e9731a authored by totten's avatar totten
Browse files

givi - When pasting in PR URLs for review, accept URLs from the "Commits" and "Files Changed" tabs

parent b891eb42
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment