PULL REQUEST WORKFLOW in AZURE DEVOPS - Raising a PR, Reviewing and Setting up Branch Policies
HTML-код
- Опубликовано: 21 июл 2020
- Hello Friends, Code review is an essential practice of the development life cycle. It helps improve the code quality, unify team practices, share knowledge, mentoring, etc. over a longer period of time. It helps find mistakes that are overlooked while developing and helps improve the overall quality of the software. This helps accelerate the deployment process as changes are more likely to pass through testing. Raising Pull Requests (PR) lets your team review code and give feedback on changes before merging it into the master branch. Reviewers can step through the proposed changes, leave comments, and vote to approve or reject the code.
In this video, I will show you how to raise a Pull Request (PR) in Azure DevOps, associate work items, add reviewers. I then wear the reviewer's hat and show how to add comments to the PR, raise suggestions (that can be applied directly from DevOps), and approve or reject the PR.
As a team, it is a good practice to set branch policies to ensure only reviewed code gets merged into your main development branch. I will show how to set branch policies, automatically add reviewers to the PR, and set automated builds on raising PR.
🌍Making Code Reviews Effective - www.rahulpnath.com/blog/code-...
📹 Build/Deploy Pipeline for the MyApp • Run AUTOMATED TESTS In...
Additional Watching:
📹Getting Started With Azure DevOps - • Introduction To AZURE ...
📹Azure DevOps Playlist - • Azure DevOps
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !! Хобби
Source - rahulpnath.visualstudio.com/RUclips%20Samples/_git/MyApp
excellent video on branch policy. Really helped to understand the concepts of pr requests in no nonsense terms.
Thanks Nikhil! Glad it helped
It's a very good and complete example. Thank you!
You are welcome!
Finally a video which tells the location of branch policies T^T
Glad it helped!
Very good video and clear explanation of concepts. Thank You!
You are welcome!
Thank you for covering this Rahul :) - it was really helpful. Would like to see a dedicated one on CI, CD
Thanks again Rakesh. Did you have any particular parts of CI/CD? My DevOps Playlist covers a lot of scenarios including CI/CD pipelines for the various app types. ruclips.net/p/PL59L9XrzUa-m7AFDgjWuwm6exyCklc03U
Happy to point to specific ones, if you are after anything in particular.
Great video, Rahul. You are a very good teacher!
Glad you think so! Hope you are enjoying the other videos.
very informative and good explanation :) thanks a lot bro
Excellent overview of the process. Nice job.
Thank you and glad you like it!
Superb man. Loved everything and explained very well
Glad you liked it Imran!
thanks, very helpful!
You're welcome!
This is Amazing , Thank you.
Super brother... Than you for the perfect explanation :)
You're most welcome Praveen! You might also want to check out the two series there
bit.ly/azure-devops-series
bit.ly/asp-net-core-series
This is an excellent video - top-notch!
Glad you liked it!!
Thank you, a very good educational video.
Glad it was helpful!
wow.. i like way Rahul Nath describes it,,.. awesome.. many thanks
You're most welcome Chethan!
You saved my time
Glad to hear that! Do check out my devops series here bit.ly/azure-devops-series
Thank You so much
You're welcome!
Thanks Rahul, Clear and good Explanation
You're most welcome!!
Thanks. It helped
Glad to hear!
Excellent tutorial 🙌🏼
Glad it was helpful!
Thanks for sharing. I was looking for how to modify the code within the pull request. Thanks again!
Glad I could help! Hope all your queries are resolved? Feel free to ask here if not.
Thank you so much Rahul!!!
Glad you like it Max!
You just got new subscriber :)
Yay! Thank you!
Good work! Much Information.
Glad it was helpful! You might like my other videos in the ASP NET Series ruclips.net/p/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
Great video bro!!!
Happy it helped!
Well explained!!!!
Thank you Rahul! 😀
Nice Info there, thx for sharing.
Glad it helped!
Very nice. Thanks Rahul.
Thank you Anu. Don't forget to checkout my popular playlists!
Azure DevOps - ruclips.net/p/PL59L9XrzUa-m7AFDgjWuwm6exyCklc03U
ASP.NET Core - ruclips.net/p/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
Very insightful video
Thank you!
thanks bro, this helps a lot. Although can you suggest me something on how to make build process, and explain status checks?
Can you provide more details on what you are trying to do? I have various videos in my DevOps series on setting up build process bit.ly/azure-devops-series
Very nice video .Can you please also do videos on interview questions in azure for freshers ,medium level and experienced level
Thank you Santosh. Good suggestion. I am planning to start a C# series focusing on some the basic concepts. Hope that will help with interviews.
Hello Rahul, how can i create an azure environment for my pull request spring boot application, doing tests on the exposed apis, then once i merge the pull request the created environment will be deleted
Hello Rahul, how can i create an azure environment for my pull request spring boot application , then doing tests in the exposed apis, once i merge my pull request, the azure environment created for my pull request will be deleted
「もっと多くの人が必要なので、このビデオをもっと
Not sure what this translates to - but thank you 😀
As you have mentioned in this video. like integration with teamcity server is it possible to publish artifact from teamcity to azure devops ? Our legacy services and repository are hosted on premises server and i want to trigger build from Teamcity server to Azure devops.
Yes should be possible. Depends on what all you are trying to keep in Teamcity and migrate to devops. Does this help? www.jetbrains.com/help/teamcity/integrating-teamcity-with-vcs-hosting-services.html
Hello Rahul, How to trigger all the build pipelines in case of Pull Request if I have multiple projects in the azure devops repo and there are different pipeline for each project.
So you have Project1-> Repo1->Build1 and Project2->Repo2->Build2. And you want to trigger both builds whenever a pull request is raised for one of the Repo's. Is that what you are trying to achieve?
Why do you want that ?
Dear Rahul..Can you please explain about the rebase and Squash merge
Nice suggestion Krishna - I have added it to my list. I will do one to cover git usage.
Hi Rahul,
Can we create a group of users like a pool, inorder to accept Bug or Change request from the pool rather than assigning a specific member.
yes you can add groups and assign them to PR's. What trouble are you facing doing this?
Is there any way to stop the trigger in jenkins when pull request is updated in azure
There should be, been a while since I have used Jenkins. Hope you figured it out.
If someone says, how to to create a CI for a new PR. What does that means ? Are you create an individual Jobs for that new pull request, if I am not wrong
It mostly is to trigger a build/release (if that is not automated for PR's). But it's very hard to tell what exactly it would mean. Best would be to confirm/chat with your team/individual that mentioned this. Hope you sort this out!
thnks ..can we automaticly reject pr if build pipleine failed?
Yes you can using Branch Policies. I talk about it at 17:11 in this video
How to trigger the build after the PR ?in classic editor?
Once you go into the pipeline definition you should have an options to 'Run Pipeline'. Is that what you are looking for?
Hi rahul i have imported a project from git to azure, after making some changes to git repo files how can i push that to azure repo and visa versa ?
Hope you figured this out. You need to create a repository in Azure and add the remote URL to your repo and push up the changes.
Hello Rahul, how can I get in touch with you? I need some help
Details in my About page - email or twitter works fine
Thanks .I have one question.How to do auto merge from one branch to another branch
Happy you liked it Raj. 18:56 is that what you are looking for?
@@RahulNath Thanks Rahul for reply.Yes exactly.I have three branch branch 1 , branch2 and branch 3.From branch 1 to 2 there is not PR approval.So once it's approved then only we are moving branch 2 to 3.
What I seen in your video merge automatically.So once we ✔️ on automatic merge then what whatever changes comes in branch 2 .It will come in branch 2 to 3 automatically?.
@@Raj-si5yz Yes any commits on a PR branch will automatically appear on the PR and trigger a new build (if that is linked). Based on policies it can also invalidate existing approvals (if any), since the code has changed. Give it a try and let me know in case you run into any issues.
@@RahulNath Thanks a bunch. I will check and I will inform you. :)
@@Raj-si5yz Sure do let me know!
Tq, in ur case there were 4 errors, but pr reflects only 1. Is there a way to see all the errors on the PR.
Hey Swati, Can you point me to the location in the video that you are referring to?
24:15 once the build fails
I hv a pipeline with 4 checks, but pr shows the 1st one. When I click on it, it will show the build and all the errors. Is there any way that all the errors are shown on the PR itself
And really thanks for such quick response
Ah ok got it - I'm not sure if there is way for that.@@swatiyp6502
Mighty thx! this was really good. Do you have a cashApp?
Glad it helped! What is cashApp? If you are looking to support me, you can buy me coffee ☕www.buymeacoffee.com/rahulpnath
What, no "Hello Everyone" ??
Oh finally at 00:51
Hehe how can I miss that 😀
I have 3 branches
Dev
Test
Prod
When i pulled request then i have choosen wrong branch and approve it but not completed
I have to choose
Pull request Dev To Test
But my mistake i have choosen
Pull request dev to master approve it but not complete
Is there any way to change branch pull request to master to test
Hey Amit,
You can Abandon the Pull Request and create a new one docs.microsoft.com/en-us/azure/devops/repos/git/pull-requests?view=azure-devops?WT.mc_id=AZ-MVP-5003875#complete-the-pull-request
Let know if that helps.
Good video, just a suggestion.. take breath and speak freely... i am feeling like listening to bot.. no offence to content.. subscribed
glad you liked the video and thank you for your feedback. Yes I totally agree and have been trying to improve since I started the channel. Slowly getting better at it 😀 Thanks for subscribing!
really kool stuff but Why So Serious ??? :)
Glad you like it Srikanth. Working on being no 'so serious' on the camera 😀
He is reading a script!
Yes ofcourse I have a script (not word-by-word though) 😀.
Here is what I used for this video if it interests you www.notion.so/rahulpnath/DevOps-PR-20a3bd06227b45c19cb40614c488d23c