If you would like to fully integrate Supernova with your organization's Azure account, you can grant Supernova access to any Azure repository to create pull requests on your behalf.
If you prefer not to authorize access to a repository that contains production code, it is also possible to create a separate repository for Supernova-created data (to be used as a git submodule). This method eliminates any possibility for Supernova to access parts of the code not maintained by Supernova.
With the secure Azure authentication, Supernova will have the following permissions:
- Read access to metadata
- Read and write access to code and pull requests
Authorize Azure
To authorize Azure from the Account → Profile Settings page:
- Select the Integrations tab.
- Under Azure, click Sign in to sign in to your Azure account.
- Choose All repositories to give access to all of the repositories in your organization, or choose Select repositories to select which repositories Supernova will have access to.
- Click Install & authorize to continue.
To authorize Azure from the New build or New pipeline dialog:
- Set Create pull requests option to ON.
- Click Sign in to sign in to your Azure account.
- Choose All repositories to give access to all of the repositories in your organization, or Select repositories to select which repositories Supernova will have access to.
- Click Install & authorize to continue.
After your Azure authorization is complete, you will now see a list of repositories and branches to choose from during hook or build configuration.
Revoke Azure authorization
To revoke your Azure authorization at any time:
- Go to your Account settings, located in the top right corner.
- Select the Integrations tab.
- Under the Azure section, click Remove.
Choosing a repository and relative path
The repository you selected is where the code from a pipeline will be exported. You can also specify a relative path to export to for each ppeline separately.
The path entered is relative to the repository root, for example, lib/design-system/assets.
Create pull requests
When you create a new pipeline, you will most likely want to open pull requests in Azure directly from Supernova. To automatically create pull requests with a pipeline:
- On the Pipelines page, click + New to open the New pipeline dialog.
- After defining your pipeline, set Create pull requests option to ON.
- If you have not yet integrated with Azure, follow the steps above for 'Authorize Azure integration'.
- Optionally, choose a relative path for the export.
- Click Confirm to save the pipeline.
Once the new pipeline has been created, it will appear in your list of hooks with the Create pull request step added.
If you would like to stop the pipeline from creating pull requests, you can click Disable in the list to temporarily disable it, or click Remove to delete the pipeline completely.