Setup
PR Lens for GitLab
Connect GitLab and PR Lens draws every merge request for you. You get one comment on the merge request, with diagrams of how the code fits together and how data moves through it.
- The diagrams update each time you push. To ask for one yourself, type
@pr-lens draw. - Comments show up under your name, because GitLab apps can't post as themselves. If you don't want that, connect from a separate account.
Running your own GitLab?
Your GitLab server needs its own app for PR Lens. Go to Admin area → Applications → New application. Tick the api scope and set the redirect URI to https://www.prlens.dev/api/forge/gitlab/oauth/callback. Then send the app's ID and secret to whoever runs this site. Until that's done, you can paste a token below.
Paste a token instead
GitLab tokens expire. When yours does, PR Lens stops working until you paste a new one.