Skip to content

docs(api): fix incorrect docs for merge_request_approvals - #2094

Merged
nejch merged 2 commits into
mainfrom
jlvillal/mr_approvals_doc
Jun 25, 2022
Merged

docs(api): fix incorrect docs for merge_request_approvals#2094
nejch merged 2 commits into
mainfrom
jlvillal/mr_approvals_doc

Conversation

@JohnVillalovos

Copy link
Copy Markdown
Member

The set_approvers() method is on the ProjectApprovalManager class.
It is not part of the ProjectApproval class.

The docs were previously showing to call set_approvers using a
ProjectApproval instance, which would fail. Correct the
documentation.

This was pointed out by a question on the Gitter channel.

The `set_approvers()` method is on the `ProjectApprovalManager` class.
It is not part of the `ProjectApproval` class.

The docs were previously showing to call `set_approvers` using a
`ProjectApproval` instance, which would fail. Correct the
documentation.

This was pointed out by a question on the Gitter channel.

@nejch nejch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @JohnVillalovos, tiny suggestion :)

Comment thread docs/gl_objects/merge_request_approvals.rst Outdated
@nejch
nejch merged commit 5583eaa into main Jun 25, 2022
@nejch
nejch deleted the jlvillal/mr_approvals_doc branch June 25, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants