Early in my career I pushed a "tiny fix" straight to main on a Friday afternoon. It broke the login page for everyone. I spent my weekend fixing it, and on Monday my lead turned on branch protection. Nobody said a word, but I got the message.
Today we make sure that never happens to you.
In Part 2 we planned our work in Azure Boards. Now we finally write some code. By the end of this post you will have:
A small ASP.NET Core Todo API in Azure Repos
A branch created straight from a work item
Your first pull request, linked to a user story
A main branch that nobody (including you) can push to directly
Let us go.
Step 1: Create the Todo API
You need the .NET SDK installed. I am using .NET 10 , the current long-term support version.…