Documentation Index
Fetch the complete documentation index at: https://mintlify.com/goulinkh/code-review-harness/llms.txt
Use this file to discover all available pages before exploring further.
@code-review-harness/launchpad-provider implements the ReviewProvider interface for Launchpad git merge proposals. It fetches PR metadata, preview diffs, review comments, and CI status from the Launchpad REST API, and provides git context for cloning via git.launchpad.net. Install it alongside @code-review-harness/core and pass the result of createLaunchpadProvider() to createReviewSession().
Installation
- npm
- pnpm
- yarn
Import
Signature
Options
The full Launchpad API URL of the merge proposal. This is the
api.launchpad.net URL, not the browser URL. For example: https://api.launchpad.net/devel/~user/+git/repo/+merge/123.Inject a custom
LaunchpadApi client instance. When provided, the accessToken, accessSecret, and consumerKey options are ignored. Use this for testing or when you need to share a single authenticated API client across providers and sinks.Absolute path to a local bare git object store to use when cloning the repository. When omitted, the provider creates or reuses a path derived from its internal configuration.
Launchpad OAuth access token. Overrides the
LP_ACCESS_TOKEN environment variable. If neither this option nor the environment variable is set, authenticated API requests will fail.Launchpad OAuth access secret. Overrides the
LP_ACCESS_SECRET environment variable.Launchpad OAuth consumer key. Overrides the
LP_CONSUMER_KEY environment variable. Defaults to "crh" when neither this option nor the environment variable is present.Environment variables
WhenaccessToken, accessSecret, and consumerKey are not passed as options, the provider reads from the environment:
| Variable | Description |
|---|---|
LP_ACCESS_TOKEN | OAuth access token for the Launchpad API. |
LP_ACCESS_SECRET | OAuth access secret for the Launchpad API. |
LP_CONSUMER_KEY | OAuth consumer key. Defaults to "crh". |