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

Resolves #1405: only one endpoint was missing #1927

Merged
merged 4 commits into from
May 5, 2024

Conversation

heidiberry
Copy link
Contributor

Comparing the endpoints to the documentation here: https://docs.gitlab.com/ee/api/status_checks.html there is only one endpoint not currently supported. This is https://docs.gitlab.com/ee/api/status_checks.html#retry-failed-status-check-for-a-merge-request

I've added a new function for this endpoint and a very basic test.

Verified

This commit was signed with the committer’s verified signature.
KennethEnevoldsen Kenneth Enevoldsen
@heidiberry
Copy link
Contributor Author

#1405

//
// 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, opt *RetryFailedStatusCheckForAMergeRequestOptions, options ...RequestOptionFunc) (*Response, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the params that are part of the URL are passed as function parameters. The option structs are only used for sending options to the API which in this case is not applicable as all params are art of the URL and not request body is expected.

heidiberry and others added 3 commits May 4, 2024 16:07

Verified

This commit was signed with the committer’s verified signature.
KennethEnevoldsen Kenneth Enevoldsen

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @heidiberry, LGTM 👍🏻

@svanharmelen svanharmelen merged commit 0de5639 into xanzy:main May 5, 2024
3 checks passed
@heidiberry heidiberry deleted the status-checks branch May 5, 2024 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants