diff --git a/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs b/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs index f08b96e..ef9a4e0 100644 --- a/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs +++ b/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs @@ -172,12 +172,20 @@ private async Task> GetMergedPullRequestsForRepositoryA private static void GetOwnerAndProject(string url, out string owner, out string project) { - var regex = new Regex(@"^https:\/\/github.com\/(?.+)\/(?.+).git$", RegexOptions.Compiled); + string pattern = @"^https:\/\/github.com\/(?.+)\/(?.+).git$"; + + if (url.StartsWith("git@github.com:")) + { + pattern = @"^git@github.com:(?.+)\/(?.+).git$"; + } + + var regex = new Regex(pattern, RegexOptions.Compiled); owner = regex.Match(url).Groups["owner"].Value; project = regex.Match(url).Groups["project"].Value; } + private static long? GetVersionAsLong(string friendlyName) { var versionAsString = new string(friendlyName.Where(c => char.IsDigit(c) || c == '.').ToArray());