Adding GitLab Projects
Last updated
Last updated
Gitlab requires a user account to post inline feedback to merge requests. We have a global user (@PullRequestBot) that we use by default to post comments. However, if your organization has a strict user policy or SAML authentication, you may need to create your own PullRequest "Bot" posting user that PullRequest can use to post your code review feedback.
In order for PullRequest reviewers to post feedback to your merge requests, a PullRequest posting user must be added to your Group.
First, create a new user that will have access to some or all of your projects, ideally with a name like PRBot
or PRBot-CompanyName
.
We recommend using this avatar for the user's photo to easily distinguish PullRequest review comments from your internal team's comments.
Next, invite the user to join your Group by navigating through Group Information -> Members in the side bar and then, click Invite Members.
In the Username or email address field, search for the newly created bot user and select the Reporter role.
Connect the newly created GitLab bot user account to PullRequest via our OAuth sign-up flow by clicking on "Sign Up with GitLab".
Once the account is connected, please let us know at support@pullrequest.com and we can configure that account to be the one that your code review feedback is posted from.
After signing up, you'll be prompted to authorize and connect with a version control hosting provider. Click the GitLab option.
You'll then be asked to authorize your GitLab user account with PullRequest.
You'll be prompted with a list of GitLab Groups associated with your GitLab account.
Select the Group you'd like to connect with and click Next.
NOTE: Multiple GitLab Groups can be connected to PullRequest. You can add more later if necessary.
Q: I don't see the Group I'm trying to add. How do I add it?
A: It's likely that the GitLab account used to connect with PullRequest is not an owner. Reach out to a team member with these credentials and ask them to sign up for PullRequest and connect. At that point, Project and Group details should be available to non-owner members in PullRequest.
Next, you'll be prompted to select which GitLab Projects (repositories) you'd like to connect to PullRequest.
You can select multiple Projects within the Group, or All Projects (recommended).
Repositories should now appear on the PullRequest dashboard page when the GitLab Group is selected from the Organizations drop-down menu at the top-left portion of the screen.