Skip to content

Commit

Permalink
chore: log gitlab client request response
Browse files Browse the repository at this point in the history
  • Loading branch information
CaioAugustoo committed Dec 7, 2024
1 parent 83cc9cd commit 81cd168
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/events/vcs/gitlab_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,10 @@ func (g *GitlabClient) PullIsMergeable(logger logging.SimpleLogging, repo models
logger.Debug("Merge status: '%s'", mr.MergeStatus) //nolint:staticcheck // Need to reference deprecated field for backwards compatibility
}

approval, _, err := g.Client.MergeRequestApprovals.GetConfiguration(repo.FullName, pull.Num)
approval, resp, err := g.Client.MergeRequestApprovals.GetConfiguration(repo.FullName, pull.Num)
if resp != nil {
logger.Debug("GET /projects/%d/merge_requests/%d/approvals returned: %d", mr.ProjectID, mr.IID, resp.StatusCode)
}
if err != nil {
return false, err
}
Expand Down

0 comments on commit 81cd168

Please sign in to comment.