- Notifications
You must be signed in to change notification settings - Fork673
-
Hi, |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 4 replies
-
You can comment on MR with following code: gl=# init and auth main Gitlab objectproject=gl.projects.get(project_id)mr=project.mergerequests.get(mr_iid)mr.discussions.create({"body":"New comment"}) where see more athttps://python-gitlab.readthedocs.io/en/stable/gl_objects/discussions.html#examples |
BetaWas this translation helpful?Give feedback.
All reactions
-
I'd like to use API to set MR to auto-approve, something like |
BetaWas this translation helpful?Give feedback.
All reactions
-
@magicalbob what exactly do you mean by "set MR to auto-approve"? Do you just mean you want to approve the MR via the API? |
BetaWas this translation helpful?Give feedback.
All reactions
-
@nejch I mean I want to update the MR so that its as if a user has pressed the |
BetaWas this translation helpful?Give feedback.
All reactions
-
So |
BetaWas this translation helpful?Give feedback.
All reactions
-
@magicalbob sorry for the late response, but that should be it yes. It's just that the API seems to only use the old terminology (it used to be MWPS only, but now it's expaded to auto-merge as it applies to other checks not just pipeline success). |
BetaWas this translation helpful?Give feedback.