Protego field desk
Processes and Communications · 10-15% of exam

L1. Flow of Work and Traceability: GitHub Flow, Azure Boards & Work Item Integration

Course outlineLesson 1 of 18
AZ-400 Exam Prep: course overview

GitHub Flow uses short-lived branches and pull requests to keep main deployable. Connect Azure Boards and include AB# references to trace commits and pull requests to their work items.

What Is GitHub Flow?

GitHub Flow is a lightweight branching model that aims to keep the main branch deployable. Unlike Git Flow, which maintains multiple long-lived branches (develop, release, hotfix), GitHub Flow uses only main and short-lived feature branches.

The workflow is straightforward: create a feature branch off main, commit changes, open a pull request for review, merge after approval, and delete the branch. Every change requires a pull request before merging to main. Required reviews and status checks enforce this workflow; the branching model alone cannot guarantee that main is deployable.

Why Traceability Matters

Traceability answers the question: "Why did this code change, and what work item justified it?" For audits and compliance, you need a complete chain from requirement to code to release.

A full traceability chain looks like this:

  • User story or bug work item
  • Feature branch created for that work item
  • Commits referencing the work item ID
  • Pull request linking the work item
  • Build and test pipeline run
  • Release containing that code

Without traceability, auditors cannot verify that changes follow proper change control processes.

Linking Work Items in Azure Boards

Azure Boards integrates with GitHub through the AB# syntax. When you include AB#123 in a commit message or PR description, Azure Boards automatically links that change to work item 123:

git commit -m "Fix authentication flow AB#456"

With the repository connected to Azure Boards, the commit now appears on work item 456's timeline. Teams can also create branches directly from a work item in Azure Boards, and the branch name is pre-populated with the work item ID for easy reference.

GitHub Issues and Closing Keywords

When using GitHub Issues instead of Azure Boards, use closing keywords in PR descriptions to auto-close issues:

KeywordBehavior
Fixes #123Closes issue 123 when the PR merges into the default branch
Closes #456Closes issue 456 when the PR merges into the default branch
Resolves #789Closes issue 789 when the PR merges into the default branch
This ensures issues are closed automatically and linked to the PR that resolved them, keeping GitHub's issue tracker synchronized with your code.

The Azure Boards GitHub Connector

The Azure Boards GitHub Connector bridges the gap between a GitHub repository and an Azure DevOps project. Once configured, commits and pull requests that include valid AB# references link to the corresponding work items. The connector does not infer a work item for every change.

This allows teams to use GitHub for code while maintaining sprint planning and work tracking in Azure Boards. The connector handles the linking automatically, reducing manual overhead and keeping both systems in sync.

Feedback and Notifications

GitHub Flow supports asynchronous collaboration through notifications. Team members receive alerts when:

  • A pull request is opened requesting their review
  • Comments are added to an issue or PR
  • Their review is requested or dismissed

These notifications keep stakeholders informed without requiring them to switch between tools constantly. Exam tip: The AZ-400 exam tests traceability chains and the relationship between GitHub Flow, Azure Boards, and compliance. Remember: GitHub Flow aims to keep main deployable through short-lived branches, required checks and PR reviews, while AB# syntax and the Connector enable full work item tracking.

References

Continue Learning

Exam Focus Points
  • ✓GitHub Flow aims to keep main deployable through required checks and reviews: every change goes through a short-lived feature branch and a pull request before merging back to main
  • ✓The AB#123 syntax in a commit message or PR description auto-links that change to Azure Boards work item 123
  • ✓GitHub closing keywords like Fixes #42 or Closes #42 in a PR description automatically close the referenced issue when the PR merges into the default branch
  • ✓The Azure Boards GitHub Connector links a GitHub repository to an Azure DevOps project so GitHub commits and PRs appear directly on the linked work item's timeline
  • ✓A full traceability chain (requirement to work item to branch to commit to PR to build to release) is what auditors look for when verifying change control, not just code review approval alone
Knowledge Check

1. A team has connected its GitHub repository to Azure Boards and wants every commit that resolves a bug to automatically link back to the Azure Boards bug work item without manually creating work-item links. What should they do?

2. A GitHub-hosted repository needs its pull requests to show up automatically on the corresponding Azure Boards work items used for sprint planning. What enables this?

3. Why is GitHub Flow considered simpler than Git Flow for teams practicing continuous delivery?