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 !!
  • ХоббиХобби

Комментарии • 117

  • @RahulNath
    @RahulNath  4 года назад

    Source - rahulpnath.visualstudio.com/RUclips%20Samples/_git/MyApp

  • @NikhilKumar-ig6qi
    @NikhilKumar-ig6qi 3 года назад +10

    excellent video on branch policy. Really helped to understand the concepts of pr requests in no nonsense terms.

    • @RahulNath
      @RahulNath  3 года назад

      Thanks Nikhil! Glad it helped

  • @luisgustavofernandezbatres5352
    @luisgustavofernandezbatres5352 3 года назад +2

    It's a very good and complete example. Thank you!

  • @shubhajyotipaul2094
    @shubhajyotipaul2094 3 года назад +1

    Finally a video which tells the location of branch policies T^T

  • @KarthikNagendiran
    @KarthikNagendiran 2 года назад +2

    Very good video and clear explanation of concepts. Thank You!

  • @11504104067
    @11504104067 3 года назад +3

    Thank you for covering this Rahul :) - it was really helpful. Would like to see a dedicated one on CI, CD

    • @RahulNath
      @RahulNath  3 года назад

      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.

  • @moelmakrani7116
    @moelmakrani7116 6 месяцев назад

    Great video, Rahul. You are a very good teacher!

    • @RahulNath
      @RahulNath  6 месяцев назад

      Glad you think so! Hope you are enjoying the other videos.

  • @SruthiA-si4ss
    @SruthiA-si4ss Год назад

    very informative and good explanation :) thanks a lot bro

  • @sfincione2000
    @sfincione2000 3 года назад +1

    Excellent overview of the process. Nice job.

    • @RahulNath
      @RahulNath  3 года назад

      Thank you and glad you like it!

  • @imrankhan-wy3yb
    @imrankhan-wy3yb 2 года назад +1

    Superb man. Loved everything and explained very well

    • @RahulNath
      @RahulNath  2 года назад

      Glad you liked it Imran!

  • @bigneon2
    @bigneon2 9 месяцев назад +1

    thanks, very helpful!

    • @RahulNath
      @RahulNath  9 месяцев назад

      You're welcome!

  • @davidhosni2655
    @davidhosni2655 9 месяцев назад

    This is Amazing , Thank you.

  • @PraveenKumar-ft2kr
    @PraveenKumar-ft2kr 2 года назад +3

    Super brother... Than you for the perfect explanation :)

    • @RahulNath
      @RahulNath  2 года назад +1

      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

  • @xandrovich5976
    @xandrovich5976 Год назад

    This is an excellent video - top-notch!

  • @bookofproofs
    @bookofproofs 2 года назад +2

    Thank you, a very good educational video.

    • @RahulNath
      @RahulNath  2 года назад

      Glad it was helpful!

  • @chethankumar9666
    @chethankumar9666 Год назад

    wow.. i like way Rahul Nath describes it,,.. awesome.. many thanks

    • @RahulNath
      @RahulNath  Год назад

      You're most welcome Chethan!

  • @s.sasisekhar4608
    @s.sasisekhar4608 Год назад

    You saved my time

    • @RahulNath
      @RahulNath  Год назад

      Glad to hear that! Do check out my devops series here bit.ly/azure-devops-series

  • @GarvitDhasmana
    @GarvitDhasmana 8 месяцев назад

    Thank You so much

    • @RahulNath
      @RahulNath  7 месяцев назад

      You're welcome!

  • @dataarq945
    @dataarq945 Год назад

    Thanks Rahul, Clear and good Explanation

  • @mdrezowantalukder9059
    @mdrezowantalukder9059 Год назад +1

    Thanks. It helped

  • @yvindballe4789
    @yvindballe4789 2 года назад +1

    Excellent tutorial 🙌🏼

    • @RahulNath
      @RahulNath  2 года назад

      Glad it was helpful!

  • @khaledzeidiyeh823
    @khaledzeidiyeh823 2 года назад

    Thanks for sharing. I was looking for how to modify the code within the pull request. Thanks again!

    • @RahulNath
      @RahulNath  2 года назад

      Glad I could help! Hope all your queries are resolved? Feel free to ask here if not.

  • @maxlau4321
    @maxlau4321 2 года назад

    Thank you so much Rahul!!!

    • @RahulNath
      @RahulNath  2 года назад

      Glad you like it Max!

  • @AmitPatils
    @AmitPatils Год назад

    You just got new subscriber :)

  • @etalon11
    @etalon11 3 года назад +1

    Good work! Much Information.

    • @RahulNath
      @RahulNath  3 года назад

      Glad it was helpful! You might like my other videos in the ASP NET Series ruclips.net/p/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP

  • @shakhawathossainshawon4769
    @shakhawathossainshawon4769 2 года назад +1

    Great video bro!!!

  • @rahulswami7754
    @rahulswami7754 2 года назад

    Well explained!!!!

    • @RahulNath
      @RahulNath  2 года назад

      Thank you Rahul! 😀

  • @NabranAboubacar
    @NabranAboubacar 2 года назад +1

    Nice Info there, thx for sharing.

  • @AnickRazibul
    @AnickRazibul 3 года назад +1

    Very nice. Thanks Rahul.

    • @RahulNath
      @RahulNath  3 года назад +1

      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

  • @pramilgawande2800
    @pramilgawande2800 3 года назад +1

    Very insightful video

  • @snehilverma1772
    @snehilverma1772 3 месяца назад +1

    thanks bro, this helps a lot. Although can you suggest me something on how to make build process, and explain status checks?

    • @RahulNath
      @RahulNath  3 месяца назад

      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

  • @harithasantosh
    @harithasantosh Год назад +1

    Very nice video .Can you please also do videos on interview questions in azure for freshers ,medium level and experienced level

    • @RahulNath
      @RahulNath  Год назад

      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.

  • @user-nn3zv9yx9n
    @user-nn3zv9yx9n 5 месяцев назад

    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

  • @user-nn3zv9yx9n
    @user-nn3zv9yx9n 5 месяцев назад

    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

  • @javierpajon68
    @javierpajon68 2 года назад

    「もっと多くの人が必要なので、このビデオをもっと

    • @RahulNath
      @RahulNath  2 года назад

      Not sure what this translates to - but thank you 😀

  • @TellaTrix
    @TellaTrix 3 года назад +1

    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.

    • @RahulNath
      @RahulNath  3 года назад

      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

  • @subhankarpati8370
    @subhankarpati8370 3 года назад

    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.

    • @RahulNath
      @RahulNath  3 года назад

      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 ?

  • @krishna172225
    @krishna172225 3 года назад +2

    Dear Rahul..Can you please explain about the rebase and Squash merge

    • @RahulNath
      @RahulNath  3 года назад +2

      Nice suggestion Krishna - I have added it to my list. I will do one to cover git usage.

  • @shreekumarmenothparambil3478
    @shreekumarmenothparambil3478 Год назад +1

    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.

    • @RahulNath
      @RahulNath  Год назад

      yes you can add groups and assign them to PR's. What trouble are you facing doing this?

  • @sushmithashetty5324
    @sushmithashetty5324 2 года назад +1

    Is there any way to stop the trigger in jenkins when pull request is updated in azure

    • @RahulNath
      @RahulNath  2 года назад

      There should be, been a while since I have used Jenkins. Hope you figured it out.

  • @Trustmeiam007
    @Trustmeiam007 2 года назад

    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

    • @RahulNath
      @RahulNath  2 года назад

      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!

  • @mohammadmoahammad6249
    @mohammadmoahammad6249 2 года назад +1

    thnks ..can we automaticly reject pr if build pipleine failed?

    • @RahulNath
      @RahulNath  2 года назад

      Yes you can using Branch Policies. I talk about it at 17:11 in this video

  • @hyndaviyadav6399
    @hyndaviyadav6399 3 года назад +1

    How to trigger the build after the PR ?in classic editor?

    • @RahulNath
      @RahulNath  3 года назад

      Once you go into the pipeline definition you should have an options to 'Run Pipeline'. Is that what you are looking for?

  • @vishalpoudel6712
    @vishalpoudel6712 2 года назад

    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 ?

    • @RahulNath
      @RahulNath  2 года назад

      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.

  • @kunalpanchal272
    @kunalpanchal272 4 года назад

    Hello Rahul, how can I get in touch with you? I need some help

    • @RahulNath
      @RahulNath  4 года назад

      Details in my About page - email or twitter works fine

  • @Raj-si5yz
    @Raj-si5yz 3 года назад +1

    Thanks .I have one question.How to do auto merge from one branch to another branch

    • @RahulNath
      @RahulNath  3 года назад +1

      Happy you liked it Raj. 18:56 is that what you are looking for?

    • @Raj-si5yz
      @Raj-si5yz 3 года назад +1

      @@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?.

    • @RahulNath
      @RahulNath  3 года назад +1

      @@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.

    • @Raj-si5yz
      @Raj-si5yz 3 года назад +1

      @@RahulNath Thanks a bunch. I will check and I will inform you. :)

    • @RahulNath
      @RahulNath  3 года назад

      @@Raj-si5yz Sure do let me know!

  • @swatiyp6502
    @swatiyp6502 4 месяца назад

    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.

    • @RahulNath
      @RahulNath  4 месяца назад

      Hey Swati, Can you point me to the location in the video that you are referring to?

    • @swatiyp6502
      @swatiyp6502 4 месяца назад +1

      24:15 once the build fails

    • @swatiyp6502
      @swatiyp6502 4 месяца назад

      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

    • @swatiyp6502
      @swatiyp6502 4 месяца назад

      And really thanks for such quick response

    • @RahulNath
      @RahulNath  4 месяца назад

      Ah ok got it - I'm not sure if there is way for that.@@swatiyp6502

  • @7contractors
    @7contractors Год назад

    Mighty thx! this was really good. Do you have a cashApp?

    • @RahulNath
      @RahulNath  Год назад

      Glad it helped! What is cashApp? If you are looking to support me, you can buy me coffee ☕www.buymeacoffee.com/rahulpnath

  • @triyuga
    @triyuga 4 года назад +1

    What, no "Hello Everyone" ??

    • @triyuga
      @triyuga 4 года назад +1

      Oh finally at 00:51

    • @RahulNath
      @RahulNath  4 года назад

      Hehe how can I miss that 😀

  • @KrishnaList
    @KrishnaList 3 года назад +1

    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

    • @RahulNath
      @RahulNath  3 года назад +1

      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.

  • @hackwithharsha5228
    @hackwithharsha5228 3 года назад

    Good video, just a suggestion.. take breath and speak freely... i am feeling like listening to bot.. no offence to content.. subscribed

    • @RahulNath
      @RahulNath  3 года назад +1

      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!

  • @srikanthchincholi481
    @srikanthchincholi481 3 года назад +1

    really kool stuff but Why So Serious ??? :)

    • @RahulNath
      @RahulNath  3 года назад

      Glad you like it Srikanth. Working on being no 'so serious' on the camera 😀

  • @arunkumarkt8730
    @arunkumarkt8730 3 года назад

    He is reading a script!

    • @RahulNath
      @RahulNath  3 года назад +1

      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