Merge pull request #462 from tgstation/Cyberboss-patch-4

Fixes MergePullRequest with git:// protocol remote
This commit is contained in:
Jordan Brown
2018-01-10 08:18:51 -08:00
committed by GitHub
+1
View File
@@ -1012,6 +1012,7 @@ namespace TGS.Server
var prAPI = remoteUrl;
prAPI = prAPI.Replace("/.git", "");
prAPI = prAPI.Replace(".git", "");
prAPI = prAPI.Replace("git:", "https:");
prAPI = prAPI.Replace("github.com", "api.github.com/repos");
prAPI += "/pulls/" + PRNumberString + ".json";
string json;