Configure status badges for your GitHub repo
Azure Boards | Azure DevOps Server 2020 | Azure DevOps Server 2019
You can add Markdown syntax to a GitHub repo README.md file to display your Kanban board's status in that repo. Show the status by adding the syntax you choose from your Kanban board settings.
Note
Requires Azure DevOps Server 2019 Update 1 or later version.
The syntax shown works whether you've connected your project to a GitHub.com or your GitHub Enterprise Server repository. For GitHub Enterprise Server, your server must be network accessible to Azure DevOps Services.
Prerequisites
- Your Azure Boards project must be connected to the GitHub repository where the commits and pull requests you want to link to/from exist. For details, see Azure Boards-GitHub integration.
- You must have a Kanban board you want to configure. When you add a team, you add a Kanban board for that team. To learn more, see About teams and Agile tools.
- You must be added to the team administrator role for the team's settings you want to modify, or be a member of the Project Administrators security group. To get added, see Add a team administrator or Set permissions at the project- or collection-level.
- To add the status badge to the GitHub.com repository, you must be a contributor of the repository.
Open your Kanban board settings
Sign into Azure Boards.
Open your Kanban board. If you're not a team admin, get added as one. Only team and project admins can customize the Kanban board.
Choose the
gear icon to configure the board and set general team settings.
Choose Status badge and then check or uncheck the Allow anonymous users to access the status badge. When unchecked, users who aren't signed in can still view the status badge.
Choose the badge type you want and choose the
copy icon to copy the Markdown syntax for the badge.Show "In progress" columns only ignores the first and last columns.
Include all columns includes the first and last columns of the board.Also, you can customize the set of columns by specifying
2for the columnOptions and then a comma-delimited list of the board columns to appear. For example,?columnOptions=2&columns=Proposed,Committed,In%20Progress,In%20Review, as shown in the following syntax. For column labels that include spaces, you must encode the space with%20. For example,In%20Progress.[](https://dev.azure.com/fabrikam/677da0fb-b067-4f77-b89b-f32c12bb8617/_boards/board/t/cdf5e823-1179-4503-9fb1-a45e2c1bc6d4/Microsoft.RequirementCategory/)And which will cause a badge similar to the following to display.

When done, choose Save and close or Cancel.
Note
The only setting that you can configure is the Allow anonymous users to access the status badge. The badge type under Settings only switches the Markdown syntax for you to copy from the Sample Markdown and Image URL values.
Open the README file in your GitHub repo and paste the syntax you copied to have the badge display.
You should see the same preview image that you selected with values that correspond to your Kanban board. For example:
