Skip to main content

GitLab for the Leanmote Agent

Connect your GitLab account so the agent can act on merge requests, as you, in the groups you choose.

With this connection the Leanmote Agent can act on your merge requests in GitLab: comment, close, merge, request reviewers, label and more. It is separate from the GitLab integration, which only reads projects for Context; see GitLab integration. It works with gitlab.com.


​

The agent never acts on its own: each action is proposed in Leanmote and runs only after a person approves it.


​

What the agent can do


​

  • Comment on a merge request — api.

  • Close a merge request — api.

  • Merge a merge request — api.

  • Request a reviewer — api.

  • Add a label — api.

  • Mention someone — api.

  • Set the default reviewers of a project — api.

  • Mark a merge request as draft — api.

  • Post a review comment on a stalled merge request — api.


​

Connect


​

  1. Open the Actions Hub and go to the Your agents tab.

  2. In Connections, click GitLab and then Authorize GitLab.

  3. Sign in to GitLab with your own account and accept the permissions listed below.

  4. Back in Leanmote, choose the GitLab groups and projects where the agent may act, and click Grant access.


​

The connection reaches everything your GitLab account reaches: GitLab does not let it be narrowed when you authorize it. What you choose in step 4 is what Leanmote lets the agent act on.


​

Leanmote offers the groups and projects where your account is at least Developer.


​

Connection details


​

Detail

Value

Connection type

OAuth 2.0 with PKCE, on gitlab.com.

Who connects in GitLab

Each person, with their own GitLab account. They need at least the Developer role in the groups or projects they choose.

Who can connect in Leanmote

Any member, for their own account.

Credential

Personal: the agent acts as you. One connection for each group or project you choose.

Write access

Yes: GitLab's api scope gives read and write access to everything your account can reach.


​

Scopes requested


​

  • api — every action above. GitLab has no narrower scope that allows writing on merge requests, so the connection asks for full API access and Leanmote limits the agent to the groups and projects you chose.


​

Disconnect


​

  • In the Actions Hub, under Connections, click Manage. In Agent connections, click Disconnect next to GitLab and confirm. The agents stop using it.

  • To remove the access on GitLab's side as well, revoke the Leanmote Agent app from the authorized or connected apps of your GitLab account.


​

Related articles


​

  • Leanmote Agent connections

  • GitLab integration

Did this answer your question?