Open a pull request

Learn how to open a pull request in a code pipeline.

Connect GitLab

If you haven't connected GitLab yet, you'll see a banner near the end of the Delivery step when creating your pipeline. Click Connect GitLab, and choose either Sign in with OAuth or Use a personal access token.

Connect GitLab

Authenticate with OAuth

  1. Select the account you would like to use with Supernova.
  2. You can now use this GitLab account to automate pull requests using pipelines.

See also Installing GitHub Apps in the GitHub docs.

Authenticate with PAT

PAT - GitHub
  1. Once you click Use a personal access token, a dialog will open.
  2. Enter a name for the token, an optional server URL, and paste in your personal access token.
  3. Click Save.
  4. You can now use this GitLab account to automate pull requests using pipelines.

Select delivery destination

  1. When creating a pipeline, select Open GitLab merge request as the delivery method.
  2. Select where you would like to open the pull request. Choose the connection (OAuth or personal access token), a grouprepositorybranch, and optionally a relative path.
  3. Click Create pipeline.
GitLab connection

Configuration options

  • Connection: The authentication method you would like to use for this hook (OAuth or personal access token).
  • Group: The GitLab group containing your repository.
  • Repository: The GitLab repository you would like to use.
  • Branch: The branch where the merge request will be opened.
  • Relative path: Path relative to the repository root to which code will be exported.

We will open a new or append an existing pull request on a branch called supernova/[exporter-name]. Make sure there are no conflicting branch names before running the build.