Azure Repos allows you to create Pull Request (PR) templates to standardize and streamline the PR process for your team. This ensures that all necessary information is included, making the review process more efficient.
Step-by-Step Guide
Navigate to Your Repository:
Go to the Azure Repos repository where you want to create a PR template.
Create a .azuredevops Directory:
create a new directory named .azuredevops in the root of your repository. This is where Azure Repos looks for configuration files, including PR templates.
Create a PULL_REQUEST_TEMPLATE File:
Inside the .azuredevops directory, create a file named PULL_REQUEST_TEMPLATE.md. This file will contain the template for your pull requests.
4. Add Template Content:
Open the PULL_REQUEST_TEMPLATE.md file and add the content you want to include in your PR template. You can use Markdown to format the template. Here’s an example of a basic PR template:
## What type of PR is this? (check all applicable) - [ ] 🍕 New Feature - [ ] 🎨 Enhancment Feature - [ ] 🐛 Bug ## Describe about your code changes <!-- Please do not leave this blank This PR [adds/removes/fixes/replaces] the [feature/bug/etc]. --> ## Related Feature & Documents <!-- Please use this format link issue numbers: Fixes #123 --> ## Screenshots/Recordings Link In Sharepoint <!-- Visual changes require screenshots --> ## Created Unit tests, etc? - [ ] 👍 yes - [ ] 🙅 no, because they aren't needed - [ ] 🙋 no, because I need help ## Added to documentation? - [ ] 📜 README.md - [ ] 📕 wiki - [ ] 🙅 no documentation needed ## [optional] Are there any post-deployment tasks we need to perform?
5. Commit and Push:
Commit the PULL_REQUEST_TEMPLATE.md file to your repository and push it to Azure Repo.
Here are the top 10 DevOps Tools to focus on to put your DevOps learning on a faster track and kick start your career quickly as a successful Cloud engineer or DevOps engineer in about 10 to 12 weeks from now.
Welcome to AI-Powered DevSecOps Coaching Program by Coach AK! Thanks for showing interest in joining the program. Please go through the useful links before joining the coaching sessions live with Coach AK in zoom.
Please click the below link to learn more about How the coaching program works.