Mobot

Mobot

AI-powered code review for Launchpad merge proposals

Get access on Mattermost

Mobot only runs for projects that are explicitly enabled. Before you configure the webhook, reach out on Mattermost so we can give you the webhook secret. Then, we will enable the project for reviews.

  • Ask @ruinedyourlife on Mattermost.

Setup

  1. 1
    Navigate to your repository's webhook settings https://code.launchpad.net/~<user>/<project>/+git/<repo>/+webhooks Example: https://code.launchpad.net/~goulinkh/git-goulin-project/+git/git-goulin-project/+webhooks
  2. 2
    Add a new webhook with this endpoint https://mobot.eepy.fr/api/webhooks/launchpad
  3. 3
    Select event type Choose Merge proposal from the event list
  4. 4
    Add the webhook secret Paste the secret you received on Mattermost into the webhook's secret field (Launchpad uses it to sign deliveries).
  5. 5
    Save the webhook, then request a review Once the webhook is active, post @mobot review on a merge proposal (see Commands below).

Commands

Post a comment on a merge proposal to interact with Mobot:

@mobot review

Triggers an AI code review. Mobot posts a short acknowledgement on the merge proposal with a progress link to a status page; when the run finishes, the verdict and inline feedback arrive in a separate comment. The status page lists steps as the worker advances (links expire after 30 days).

@mobot abstain

Removes Mobot's vote. Use this if Mobot left a blocking review and you want to clear it.

How it works

1
Webhook received

Launchpad sends a merge proposal event to Mobot

2
Diff fetched

Mobot retrieves the code diff from Launchpad

3
AI review

An LLM analyses the diff and generates feedback

4
Comments posted

Inline and summary comments are posted back to the MP