Skip to content

Commit

Permalink
Implement @gep13 suggestion when fetching related issues/PRs in the G…
Browse files Browse the repository at this point in the history
…itLeb provider
  • Loading branch information
Jericho committed Jul 19, 2024
1 parent 677cecd commit 3580754
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GitReleaseManager.Core/Provider/GitLabProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,8 @@ public Task<IEnumerable<Issue>> GetLinkedIssuesAsync(string owner, string reposi
}
else
{
var closedBy = _gitLabClient.Issues.ClosedBy(GetGitLabProjectId(owner, repository), issue.PublicNumber);
var relatedTo = _gitLabClient.Issues.RelatedTo(GetGitLabProjectId(owner, repository), issue.PublicNumber);
var issues = _mapper.Map<IEnumerable<Issue>>(closedBy);
var issues = _mapper.Map<IEnumerable<Issue>>(relatedTo);
return Task.FromResult(issues);
}
});
Expand Down

0 comments on commit 3580754

Please sign in to comment.