Get access on Mattermost

M-O Bot only runs for explicitly enabled projects. Ask @goulinkh on Mattermost for the webhook secret and project access before continuing.

Setup

  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. Add a webhook with this endpoint
    https://mobot.staging.launchpad.net/api/webhooks/launchpad
  3. Select the event type
    Choose Merge proposal from the event list.
  4. Add the webhook secret
    Paste the secret from Mattermost into Launchpad's secret field so deliveries can be verified.
  5. Save the webhook and request a review
    Post @mobot review on a merge proposal after the webhook is active.

Commands

Post a comment on a merge proposal to interact with M-O Bot.

@mobot review

Starts an AI code review. M-O Bot acknowledges the request with a progress link, then posts the verdict and inline feedback in a separate comment. Progress links expire after 30 days.

@mobot abstain

Removes M-O Bot's vote from the merge proposal.

How it works

  1. Webhook received Launchpad sends a merge proposal event to M-O Bot.
  2. Diff fetched M-O Bot retrieves the code diff from Launchpad.
  3. AI review An eligible model analyses the diff and generates feedback.
  4. Comments posted Inline and summary comments are posted back to the proposal.