Description
Configures an integration between Azure Boards and the destination GitHub repository. View in Knowledge BaseADO now rejects GitHub Personal Access Tokens (PAT) with any extra scopes during ADO Boards integration. The GitHub destination PAT (which needs broad scopes) is fundamentally incompatible with the See this Sample Request
integrate-boards command.A possible workaround:- Create or use an existing GitHub App connection in ADO (Project Settings > GitHub Connections), created via the OAuth flow.
- Call the ADO Boards GitHub Connections API update endpoint directly to add the repo using a POST request to:
https://dev.azure.com/{org}/{project}/_apis/githubconnections/{connectionId}/repos?api-version=7.1-preview.1Key details:- You cannot send plain strings.
gitHubRepositoryUrlsin the request body must be an array of objects (each with agitHubRepositoryUrlproperty) andoperationTypemust beadd.
{
"gitHubRepositoryUrls": [
{
"gitHubRepositoryUrl": "https://github.com/test-account/repo1"
},
{
"gitHubRepositoryUrl": "https://github.com/test-account/repo2"
},
{
"gitHubRepositoryUrl": "https://github.com/test-account/repo3"
},
{
"gitHubRepositoryUrl": "https://github.com/test-account/repo399"
}
],
"operationType": "add"
}
Example
/integrate-boards
Authorization
- Not required.