Skip to content

Commit

Permalink
Correctly fetch reviewer for LHS (mattermost#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei authored Mar 30, 2023
1 parent 2b10e7c commit deac043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/gitlab/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (g *gitlab) GetReviews(ctx context.Context, user *UserInfo) ([]*MergeReques
var mrs []*internGitlab.MergeRequest
if g.gitlabGroup == "" {
opt := &internGitlab.ListMergeRequestsOptions{
AssigneeID: internGitlab.AssigneeID(user.GitlabUserID),
ReviewerID: internGitlab.ReviewerID(user.GitlabUserID),
State: &opened,
Scope: &scope,
ListOptions: internGitlab.ListOptions{Page: 1, PerPage: perPage},
Expand All @@ -313,7 +313,7 @@ func (g *gitlab) GetReviews(ctx context.Context, user *UserInfo) ([]*MergeReques
}
} else {
opt := &internGitlab.ListGroupMergeRequestsOptions{
AssigneeID: internGitlab.AssigneeID(user.GitlabUserID),
ReviewerID: internGitlab.ReviewerID(user.GitlabUserID),
State: &opened,
Scope: &scope,
ListOptions: internGitlab.ListOptions{Page: 1, PerPage: perPage},
Expand Down

0 comments on commit deac043

Please sign in to comment.