Jaidu integrates with Azure Repos to let you create pull requests directly from workspaces. This integration relies on the Azure CLI (az) with the Azure DevOps extension being installed and authenticated on the registered host that owns the workspace.

Setup

Before you can create pull requests from Jaidu, you need to install and configure the Azure CLI manually.

Install Azure CLI

Follow the official installation instructions for your host operating system:
  • macOS: brew install azure-cli
  • Windows: Download and run the MSI installer from the Azure CLI documentation
  • Linux: Use your distribution’s package manager or the install script

Install the Azure DevOps Extension

The Azure DevOps extension adds repository and pull request commands to the Azure CLI. Run the following command:
az extension add --name azure-devops

Authenticate

  1. Sign in to Azure: Run the following command and follow the prompts to authenticate via the web browser:
    az login
    
  2. Configure defaults (optional but recommended): Set your default organization and project to avoid specifying them with each command:
    az devops configure --defaults organization=https://dev.azure.com/{your-org} project={your-project}
    

Supported URL Formats

Jaidu supports both modern and legacy Azure DevOps URL formats:
  • Modern: https://dev.azure.com/{org}/{project}/_git/{repo}
  • Legacy: https://{org}.visualstudio.com/{project}/_git/{repo}
Use the same authenticated Git remote URL that the repository already uses on the host.

Creating a Pull Request

Once the Azure CLI is ready, you can create pull requests directly from a workspace:
  1. Open a workspace that has changes you want to merge.
  2. Click the Create PR button.
  3. Review the pre-filled title, description, and base branch.
  4. Click Create to open the PR on Azure Repos.
If the operation is successful, Jaidu stores a link to the new pull request with the workspace.