Learn how to link GitHub to Azure Boards
Azure Boards allows seamless integration with GitHub to track work items alongside commits, pull requests, and issues. This integration provides traceability between development tasks and the work being done in GitHub, making it easier for teams to manage and monitor their workflows.
Use GitHub to Track Work in Azure Boards
Azure Boards and GitHub integration enables teams to:
Track GitHub Pull Requests and Commits:
Automatically link commits and pull requests to work items in Azure Boards.
Maintain a traceable connection between code changes and tasks.
Sync GitHub Issues with Azure Boards Work Items: Convert GitHub issues into Azure Boards work items for better planning and tracking.
Collaborate Seamlessly: Combine GitHub’s code hosting capabilities with Azure Boards’ task management features.
Azure Boards App for GitHub
The Azure Boards App is the official GitHub app to enable this integration. It connects Azure Boards to your GitHub repositories, allowing you to link work items directly to GitHub activity.
Key Features:
Track GitHub commits, pull requests, and issues in Azure Boards.
Automatically update work item states based on GitHub actions (e.g., PR merged).
Add work item references in commit messages or PR descriptions.
Installing the Azure Boards App:
Navigate to GitHub Marketplace: Open the in the GitHub Marketplace.
Install the App:
Select the GitHub repositories you want to link with Azure Boards.
Grant permissions for the app to access repository data.
Configure in Azure Boards:
Open your Azure DevOps project.
Navigate to Project Settings > GitHub Connections.
Authenticate and link the GitHub app to Azure Boards.
Authenticating to GitHub
To enable the Azure Boards and GitHub integration, you need to authenticate with GitHub.
Personal Access Token (PAT):
Generate a PAT from your GitHub account with the required scopes (e.g.,
repo
,read:user
).Use this PAT to authenticate when setting up the connection in Azure Boards.
OAuth Authentication:
Sign in to GitHub via Azure Boards using OAuth.
Grant Azure Boards access to your GitHub account and repositories.
Supported Integration Scenarios
Azure Boards supports integration with GitHub in two main scenarios:
1. From GitHub to Azure Boards
Use Case:
Developers working in GitHub need to reference or track tasks in Azure Boards.
Key Actions:
Add work item IDs (e.g.,
AB#123
) in commit messages or PR descriptions.GitHub activity (e.g., a merged PR) updates linked work items in Azure Boards automatically.
Example Workflow:
A developer pushes code with the commit message:
xxxxxxxxxx
11Fixes AB#123: Updated database schema
Azure Boards recognizes
AB#123
and links the commit to the corresponding work item.The work item is updated with the commit details and PR status.
2. From Azure Boards to GitHub
Use Case:
Project managers and product owners in Azure Boards want visibility into development progress in GitHub.
Key Actions:
Link Azure Boards work items to GitHub issues or pull requests.
View GitHub activity directly in Azure Boards.
Example Workflow:
A work item is linked to a GitHub issue.
The issue’s status in GitHub automatically updates the work item in Azure Boards.
Steps to Link GitHub to Azure Boards
Set Up GitHub Integration in Azure Boards:
Navigate to Project Settings > GitHub Connections.
Click New Connection and authenticate with GitHub.
Select the repositories to connect to Azure Boards.
Configure Linking Rules: Enable automatic linking by including work item IDs (e.g.,
AB#123
) in GitHub activity (commit messages, PR descriptions, or issue comments).Sync GitHub Issues with Azure Boards (Optional): Use the Azure Boards-GitHub Issues synchronization tool to map GitHub issues to Azure Boards work items.
Best Practices for Using the Integration
Use Consistent Work Item References: Include
AB#<work item ID>
in commit messages or PR descriptions for automatic linking.Automate Workflows: Set up automation rules in Azure Boards to move work items to "In Progress" or "Done" based on GitHub activity.
Leverage Dashboards: Use Azure DevOps dashboards to monitor progress and GitHub activity in one place.
Train Your Team: Educate developers on how to reference work items in commits and PRs to ensure smooth integration.
Benefits of Integration
Traceability: Connect code changes and GitHub activity to Azure Boards work items for full visibility.
Productivity: Eliminate manual updates by syncing work items and GitHub activity automatically.
Collaboration: Enhance coordination between project managers and developers working in separate tools.
Summary
This integration brings the best of Azure Boards' planning capabilities and GitHub's development platform into a single, cohesive workflow.
Leave a Reply