Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Update function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed May 5, 2024
1 parent 7967347 commit a8a47fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external_status_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ func (s *ExternalStatusChecksService) UpdateExternalStatusCheck(pid interface{},
//
// Gitlab API docs:
// https://docs.gitlab.com/ee/api/status_checks.html#retry-failed-status-check-for-a-merge-request
func (s *ExternalStatusChecksService) RetryFailedStatusCheckForAMergeRequest(pid interface{}, mergeRequest int, externalStatusCheckID int, options ...RequestOptionFunc) (*Response, error) {
func (s *ExternalStatusChecksService) RetryFailedStatusCheckForAMergeRequest(pid interface{}, mergeRequest int, externalStatusCheck int, options ...RequestOptionFunc) (*Response, error) {
project, err := parseID(pid)
if err != nil {
return nil, err
}
u := fmt.Sprintf("projects/%s/merge_requests/%d/status_checks/%d/retry", PathEscape(project), mergeRequest, externalStatusCheckID)
u := fmt.Sprintf("projects/%s/merge_requests/%d/status_checks/%d/retry", PathEscape(project), mergeRequest, externalStatusCheck)

req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
if err != nil {
Expand Down

0 comments on commit a8a47fa

Please sign in to comment.