Tracking Changes from GitHub in Azure Boards
DevOps Training Architect II in Content
In this hands-on lab, you will be integrating a GitHub repository with your Kanban board in Azure DevOps. The integration will allow you to track commits, pull requests, and merges in your GitHub repository and automatically sync those changes with Azure Boards, so you can better visualize work in progress.
Tracking Changes from GitHub in Azure Boards
In this hands-on lab, we will be integrating a GitHub repository with our Kanban board in Azure DevOps. The integration will allow us to track commits, pull requests, and merges in our GitHub repository and automatically sync those changes with Azure Boards, so we can better visualize work in progress.
Connecting to the Lab
Log in to the Azure Portal using the credentials provided on the lab instructions page.
Create a New Azure DevOps Organization
- Click All services in the left-hand menu
- Run a search for "DevOps" and select Azure DevOps.
- Click the My Azure DevOps Organizations link (this will open a new tab).
- Once the fields have auto-populated with the name, email, and location, click Continue.
- Click Create new organization.
- Uncheck the checkbox and then click Continue.
- Choose a name for your new DevOps organization (the default will suffice).
- Leave the default name for the new DevOps organization, select Central US as the location, and click Continue.
- In a new browser tab, navigate to the Demo Generator to populate the Azure Board.
- On the Demo Generator website, click Sign In, scroll to the bottom, and click Accept.
- On the Create New Project screen, select the organization you just created in the previous steps from the dropdown menu.
- Enter the project name "PartsUnlimited".
- Click Choose template, choose PartsUnlimited from the pop-up menu, and click Select Template.
- Click Create Project. It will take a minute or so for the project to finish being created.
(Optional) Create a New GitHub Account for Free
- In a new browser tab, navigate to https://github.com.
- Click Sign up.
- Create a new username, enter your email address, and create a new password.
- Click Verify to verify your account, and click Next: Select a plan.
- Under Choose a plan, select Choose Free.
- On the Welcome to GitHub page, scroll down and select Skip this step.
- GitHub has just sent you an email. Click the link inside the email to verify your email address. (Once you've clicked the link in the email, you are brought back to GitHub.com.)
Fork the PartsUnlimited Repo and Connect GitHub Account
- Navigate to the PartsUnlimited repo.
- Click Fork to fork the repo to your GitHub account.
- Back in the Azure DevOps tab, open the PartsUnlimited Azure DevOps project we created in the first task.
- Click Project settings in the lower left corner.
- Select GitHub connections and then Connect your GitHub account.
- Click Authorize AzureBoards when prompted. (This directs you to GitHub.com temporarily.)
- Back in your project settings, select the PartsUnlimited forked repo and click Save in the bottom right corner.
- Click Approve, Install, & Authorize when prompted. (This directs you to GitHub.com temporarily.)
Change the Code in GitHub and View Tracking Info Within the Work Item
Click Boards in the left-hand menu.
Click Boards as the sub-menu item, and select PartsUnlimited Team boards.
View the bug labeled Decline in orders noticed - Please Investigate immediately, and copy the issue number (needed for the following steps).
Back in the GitHub repository we forked in the previous task, select the PartsUnlimited.Mobile.sln file from within the repository.
Click the pencil icon to edit the file.
# Visual Studioline, enter a new line and type the comment:
# Orders Change
In the Commit changes section, enter your commit message (replacing
<issue number>with the bug issue number you copied a few minutes ago):
fixed AB#<issue number>
Select Create a new branch for this commit and start a pull request.
Click Propose file change.
Leave a comment in the pull request (e.g., "change orders"), and click Create pull request.
Click Merge pull request to merge this branch to the master branch, and click Confirm merge.
Go back to the Kanban board and view the changes, as they were automatically synced with the work item. Notice the issue has been moved across the board into the Done lane.
(Optional) Delete your GitHub Account
- Go to GitHub, and click your avatar in the upper right corner.
- Select Settings from the dropdown menu.
- Click Account in the left-hand menu.
- Click Delete your account.
- Type your username or email, and verify by typing in "delete my account."
- Click Cancel plan and delete this account.
Congratulations on successfully completing this hands-on lab!