Connect and Work With GitLab
Connect GitLab to import a project, push a branch, and open a merge request.
Connect GitLab to bring a project from a personal or group namespace into BhaiCode. Use the connector to push changes to a remote branch and open a merge request for review. The dashboard’s OAuth flow goes to GitLab.com, so use the account that has access to the project there.
Connect your GitLab account
Open the connector
Go to Connectors in the BhaiCode dashboard and select Connect on the GitLab card.
Choose how to authorize
Use GitLab OAuth to approve access on GitLab.com, or enter a personal access token (PAT). If you use a PAT, give it the api and read_repository scopes. Keep the token out of your repository and enter it only in the connector form.
Import the project you need
Choose the project from its personal or group namespace. Check the namespace as well as the project name before importing; separate groups can use the same project name.
Push a branch
Use a feature branch when the work needs review before it reaches the target branch. The connector pushes the code you generate in Studio to a remote branch on your GitLab server. Before pushing, check that the remote is the intended GitLab project and that the branch name identifies the work you want reviewed.
Importing and pushing use the same connection but do different jobs. Importing brings the project’s code into BhaiCode. Pushing sends your changes back to GitLab, where teammates can see them on the remote branch.
Open a merge request
Create a merge request from the branch you pushed. The connector can prepare a structured description and a test validation summary. Review both before submitting: the description should explain the actual change, and the validation summary should distinguish tests you ran from checks still needed.
Check the target branch in the merge request. If the diff includes work you don’t expect, verify the source and target branches before asking anyone to review it.
If a project is missing, check the GitLab account and group first. Verify that you can open the project directly in GitLab with that account. If you connected with a PAT, check that it has both required scopes. Permission to view a project doesn’t necessarily let you push to one of its branches.