diff --git a/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs b/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs index 3e6b9359..1c37922e 100644 --- a/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs +++ b/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs @@ -130,16 +130,18 @@ private Dictionary> GetIssuesDict(List issues) return issuesByLabel; } - private static List GetContributors(List issues) + private static List GetContributors(IEnumerable issues) { - var contributors = issues - .Select(i => i.User) - .Union(issues.Select(i => i.LinkedIssue?.User)) + var contributors = issues.Select(i => i.User); + var linkedContributors = issues.SelectMany(i => i.LinkedIssues).Select(i => i.User); + + var allContributors = contributors + .Union(linkedContributors) .Where(u => u != null) .DistinctBy(u => u.Login) .ToList(); - return contributors; + return allContributors; } private string GetValidLabel(string label, int issuesCount)