-
-
Notifications
You must be signed in to change notification settings - Fork 455
Add approvals, approve & unapprove API's #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* | ||
* @return mixed | ||
*/ | ||
public function unApprove($project_id, $mr_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use unapprove
here please. Also use $merge_request_iid
.
* | ||
* @return mixed | ||
*/ | ||
public function approvals($project_id, $mr_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use $merge_request_iid
here instead of $mr_id
? Full names are better than abbreviations and iid
as it carry some information to the API user.
* | ||
* @return mixed | ||
*/ | ||
public function approve($project_id, $mr_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for $mr_id
.
@fbourigault See #203 |
Apply #201 suggested fixes
Hello @m4tthumphrey ,
It lacks what to for approve or know the state of approval, here is a PR to add these features:
Regards