Skip to content

Accept an MR with python-gitlab #117

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

Closed
vilmosnagy opened this issue May 14, 2016 · 2 comments
Closed

Accept an MR with python-gitlab #117

vilmosnagy opened this issue May 14, 2016 · 2 comments

Comments

@vilmosnagy
Copy link

vilmosnagy commented May 14, 2016

Hi,

It is possible to accept a Merge Request with:

PUT /projects/:id/merge_requests/:merge_request_id/merge

according to the docs.

Is there a way, to do this with python-gitlab?

I have a ProjectMergeRequest object by calling gitlab.project_mergerequests.get(project_id=1, id=1), but I cannot find any accept method nor field.

Is it possible?

Thanks!

@vilmosnagy
Copy link
Author

ah, possible duplicate of #105.
would you release a version that has this feature? thanks!

@gpocentek
Copy link
Contributor

I release 0.13, you can use the merge() method.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants