Skip to content
mergecat

Connecting Azure DevOps adds pull request titles, authors and links, names of deleted branches, squash and rebase merges, linked work items, Azure Pipelines, environments and deployments. Azure DevOps merge messages (Merged PR 12: Title) contain the pull request number and title but no branch name, so the connection matters most here.

Sign in

Open File › Connections… (or click Local only · Connect in the toolbar) and use one of the two options on the Azure DevOps card.

Sign in with Microsoft. mergecat copies a code to your clipboard and opens the Microsoft sign-in page, where your work account, single sign-on and MFA apply. Confirm the code and the card shows your account. The sign-in requests access to Azure DevOps (499b84ac-1321-427f-aa17-267ca6975798/.default) and a refresh token (offline_access); mergecat refreshes the access token automatically. This option needs the client ID of a Microsoft Entra ID app registration, entered once in Settings › Microsoft Entra ID client ID (Azure DevOps) (see Administrator setup). Without it the button is disabled and the card says so.

Use a personal access token. Paste a token and click Connect. Create a token opens the token page of Azure DevOps. The token needs these scopes:

ScopeUsed for
Code (Read & write)Repository, pull requests; write to create pull requests
Build (Read)Pipelines and runs
Environment (Read & manage)Environments and deployments
Work Items (Read)Linked work items

Tokens are encrypted with the system keychain; see Where credentials are stored. To remove the connection, click Disconnect on the Azure DevOps card.

Administrator setup: Entra ID app

Sign in with Microsoft in the desktop app needs an app registered once in Microsoft Entra ID. Its application (client) ID is not a secret, and no client secret is needed.

Register the app

In the Microsoft Entra admin center, open App registrations and create a new registration named, for example, “mergecat”. Choose the supported account types:

  • multi-tenant (accounts in any organisational directory): users keep the default tenant organizations;
  • single-tenant: users set your tenant ID in Settings, next to the client ID.

Allow public client flows

Under Authentication, set Allow public client flows to Yes. The device code sign-in needs it.

Grant access to Azure DevOps

Under API permissions, add Azure DevOps › Delegated permissions › user_impersonation. Grant admin consent if your users cannot consent themselves.

Share the client ID

Copy the Application (client) ID from the overview. Each person enters it in Settings › Microsoft Entra ID client ID (Azure DevOps), or you provide it through MERGECAT_MICROSOFT_CLIENT_ID (and the tenant through MERGECAT_MICROSOFT_TENANT).

The tenant field accepts organizations (any work account), a tenant ID or a tenant domain.

Environment variables

VariablePurpose
MERGECAT_MICROSOFT_CLIENT_IDEntra ID app client ID for Sign in with Microsoft. Fills the setting when it is empty.
MERGECAT_MICROSOFT_TENANTEntra ID tenant, default organizations.

All variables are listed in Configuration.

Recognised remotes

mergecat recognises Azure DevOps remotes on dev.azure.com, the older *.visualstudio.com addresses, SSH remotes on ssh.dev.azure.com, and Azure DevOps Server URLs that contain /_git/.

Limits

  • Classic release pipelines are not covered: pipelines and deployments come from YAML pipelines and environments.
  • Pull request checks and work item titles are not shown yet.

Troubleshooting

SymptomWhat to do
Sign in with Microsoft is disabledEnter the Entra ID client ID in Settings, or use a personal access token.
Invalid Microsoft tenant: …Enter organizations, a tenant ID or a domain in the tenant field.
Azure DevOps rejected the Microsoft sign-in. …Sign in again. If it keeps failing, the organisation may not be connected to your Entra ID tenant, or your account is not a member of it: use a personal access token.
Azure DevOps rejected the personal access token: …The token may have expired or been revoked, lack the required scopes, or belong to another organisation.
Azure DevOps denied access to …The message names the missing permission, for example Code (Read), View builds or the Reader role on the environments.
The Azure DevOps sign-in expired (…). Sign in again in Connections.The refresh failed: sign in again.

Next steps