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 Navigate to your repository's webhook settings
https://code.launchpad.net/~<user>/<project>/+git/<repo>/+webhooksExample:https://code.launchpad.net/~goulinkh/git-goulin-project/+git/git-goulin-project/+webhooks - 2 Add a new webhook with this endpoint
https://mobot.eepy.fr/api/webhooks/launchpad - 3 Select event type Choose
Merge proposalfrom the event list - 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 Save the webhook, then request a review Once the webhook is active, post
@mobot reviewon 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
Launchpad sends a merge proposal event to Mobot
Mobot retrieves the code diff from Launchpad
An LLM analyses the diff and generates feedback
Inline and summary comments are posted back to the MP