Setting a Bug Work Item to Resolved with a Fixes #123 Commit Message in Azure Repos
You manage a project by using Azure Board, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What should you add to the commit message?
Community Votes
83% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Azure Repos recognizes a fixed set of resolution keywords such as Fixes, Resolves, and Closes placed before the work item reference, and it applies the state change to that work item. The reference format in Azure Repos is the plain ID, not the GitHub-style AB123 form.
A project is managed with Azure Boards while code is managed with Azure Repos, and bug work item 123 must move to the Resolved state. Azure Repos resolves work item state from the commit message, so a supported resolution keyword tied to the work item ID must be written into that message.
Using the GitHub-style AB123 reference, which is the Boards-to-GitHub form and does not resolve inside Azure Repos commits, or inventing a non-supported keyword such as completes or Verifies, which the resolution mention parser ignores entirely.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Azure Repos closes the loop between commits and work items through resolution mentions, where a recognized keyword in the commit message instructs Azure Boards to update the referenced work item's state. Fixes is one of the supported keywords, and the reference inside an Azure Repos commit is the plain work item ID, so a message of Fixes #123 sets bug 123 to Resolved. The vote was 83 for D and 17 for B. arr73 supplied the decisive documentation link and also explained the reference-format distinction, noting that the AB123 form applies to GitHub rather than Azure Repos, which is exactly why the answer is the plain #123 form.Why the Other Options Are Wrong
Resolves #AB-123 (B) fails on the reference format, because AB123 is the Boards-to-GitHub identifier style and Azure Repos commit messages resolve plain work item IDs, so the mention parser does not bind it to work item 123. The community vote of 17 for B reflects the near-miss of having the right keyword with the wrong reference syntax. Verifies #123 (C) uses a keyword that is not in the supported resolution list, so it creates no association and changes no state. The message #123 completes (A) is doubly wrong, since the keyword comes after the ID and completes is not a supported keyword either, so nothing happens at all.Community Comment Notes
The community favored D at 83 votes with arr73's comment carrying the most weight, as it cited the official resolution-mentions documentation and clarified the Azure Repos versus GitHub reference difference. FeriAZ noted that Fixes is a common convention among development teams for signaling bug resolution through commits, which is a practical rather than a documentary reason. 3a6495b posted two contradictory comments in the same thread, first favoring B by reasoning from the word resolve, then correcting to D after noting that Fix, fixes, and fixed are the keywords, which shows how easily this question is misread from the keyword list alone.Official Reference
Related Analysis
Practice All AZ-400 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-400 Practice Test →