Skip to content

Commit

Permalink
fixup! Add 'released as part of' notes to issues when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
blairconrad committed Oct 13, 2019
1 parent 9b511cb commit ac83b93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/FakeItEasy.Deploy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ private static IEnumerable<Release> GetPreReleasesContributingToThisRelease(Rele
return Enumerable.Empty<Release>();
}

string baseName = release.Name.Split('-')[0];
return releases.Where(r => r.Prerelease && r.Name.StartsWith(baseName));
string baseName = BaseName(release);
return releases.Where(r => r.Prerelease && BaseName(r) == baseName);

string BaseName(Release release) => release.Name.Split('-')[0];
}

private static async Task UploadArtifactToGitHubReleaseAsync(GitHubClient client, Release release, string path)
Expand Down

0 comments on commit ac83b93

Please sign in to comment.