How to Review a Pull Request in GitHub the RIGHT Way

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • In this video I will teach you how to review a pull request in GitHub the right way.
    In this GitHub pull request tutorial, we will discuss GitHub start a review vs add single comment, and how to code review on GitHub. If you want to know how to do a pull request review, this is the video for you!
    🌟EXCLUSIVE CONTENT🌟
    Do you want to access exclusive content, live chats and Q&As, polls, and even 1:1 calls with me? Join my Patreon: / coderdave
    🆘 NEED HELP? 🆘
    Book a 1:1 Consultation with CoderDave: geni.us/cdconsult
    🙏🏻SUPPORT THE CHANNEL🙏🏻
    Buy me a coffee: www.buymeacoffee.com/CoderDave
    PayPal me donation: paypal.me/dabenveg
    💬JOIN THE COMMUNITY
    ► Website: coderdave.io
    ► Discord: geni.us/cddiscord
    ► Newsletter: coderdave.io/newsletter
    ► Blog: dev.to/n3wt0n
    ► GitHub: github.com/n3wt0n
    ► Twitter: / davidebenvegnu
    ► Facebook: / coderdaveyt
    🎥VIDEOS
    ► Use GitHub like a PRO: • Use GitHub like a PRO!...
    ► Hot to use GitHub with VSCode: • How To Use GitHub with...
    ► GitHub Deployment Keys explained: • How to use Deploy Keys...
    ⏲TIMESTAMPS
    0:00 Intro
    0:41 PR done wrong
    2:13 PR done right
    3:55 Conclusions
    🎤PODCAST: geni.us/cdpodcast
    ❓QUESTIONS?
    Have a question about DevOps, Cloud, Coding, or Anything Else? Post in comments section of this video!
    🔴SUBSCRIBE to CoderDave here: ruclips.net/user/CoderDave?sub...
    _______________
    👕GET MY MERCH: geni.us/cdmerch
    🔮TOOLS I USE
    ► Twingate - Connect to your Private Resources SECURELY: geni.us/twingate
    ► TubeBuddy - #1 RUclips channel Management tool (FREE): www.tubebuddy.com/CoderDave
    ► Moosend - Free Newsletter and Automation Platform: geni.us/moosend
    📸🖥️GEAR AND SOFTWARE
    ► Music - Epidemic Sound (Get 30 days free): epidemicsound.com/referral/zf...
    ► Editing - Adobe Premiere Pro: geni.us/AdobeVideo
    ► Gear I Use for RUclips: kit.co/CoderDave/gear-i-use-f...
    ► Gear I Use for Streaming: kit.co/CoderDave/gear-i-use-f...
    ► My Computer Setup: kit.co/CoderDave/main-compute...
    ► Full office setup: github.com/n3wt0n/work-from-h...
    Disclaimer:
    Some product links are affiliate links which means if you buy something I'll receive a small commission at no additional cost to you.
    As an Amazon Associate, I earn from qualifying purchases.
  • НаукаНаука

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

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

    GET HELP ON DEVOPS: geni.us/cdconsult
    SUPPORT THE CHANNEL :
    Buy me a coffee: www.buymeacoffee.com/CoderDave
    PayPal me donation: paypal.me/dabenveg

  • @KarlBrouillette
    @KarlBrouillette 2 года назад +7

    Thank you very much! 3 mins and I am off to do my review. Very efficient :-)

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

      Glad it was helpful!

  • @Popdad
    @Popdad 2 года назад +9

    simple and to the point. Great one.

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

      Happy you liked it 😀

  • @Chatsworth1979
    @Chatsworth1979 3 года назад +4

    Ah, another "three minute Thursday here in the US" : - ) Seriously, I like these and know why you post them at this time. A good one today!

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

      Haha right... I’m trying posting videos at different times to see the response... from my perspective it’s still Friday 😁(this was at 1 am 😄)
      I have a live next Tuesday 3pm, curious to see how many people (if any) will show up since it’s too late for US...

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

    Great in short. Thanks a lot. I was searching for it.

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

    Thank you good tip, I will share this with my team.. subscribed !!

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

      Thanks! Yes it’s something simple but pretty effective 😉

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

    thank you so much!I'm new to code review and this video helps me know how should i start it

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

      Very happy to know it help ☺️

  • @KARASHIMENTAIKO
    @KARASHIMENTAIKO 28 дней назад

    Thank you for the great video!!

  • @LordKaos666
    @LordKaos666 Месяц назад

    Thank you very much for the video. Very useful.

  • @user-lu8jk3nv9j
    @user-lu8jk3nv9j 9 месяцев назад +1

    simple and to the point, great one ♥

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

      Glad you liked it!

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

    Thanks mate, quick and informative

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

      Thanks! Always happy to help ☺️

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

    Thanks a lot for this fast and informative content.

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

      😀 always happy to help

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

    great video Dave! this was super helpful

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

    Clear and concise, thanks man

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

    Thanks a lot!! Simple and straight to the point!!

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

      Happy you found it helpful!

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

    Helped a lot!

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

      Very happy to know it helped! 😊

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

    Thank you dude, it's a valuble and concise info.

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

    Thanks for this short and informative video.

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

      Glad it was helpful!

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

    nice, keep it simple !! thank you very much man !!

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

      You’re welcome ☺️ and thanks for the compliment

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

    Fantastic video! Thanks

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

    Thank you Dave!

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

    Thanks for the video! Well explained.

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

      Glad to know you found it helpful 😀

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

    Good explanation. Thanks!

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

      Thanks. Happy to know it was helpful ☺️

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

    Great explanation! Thank you!

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

      You’re welcome, and thanks for the comment ☺️

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

    great, thanks for the amazing guidance

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

      More than welcome ☺️

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

    Thanks great informative short video.

  • @box4aza
    @box4aza Месяц назад

    Thanks!

  • @luisfelipesantillanmondrag8525

    amazing, I made my first review using this today! thanks @CoderDave

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

    Excellent job

  • @user-om7ss6wh8v
    @user-om7ss6wh8v 8 месяцев назад

    simple, short and useful

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

      Happy you liked it

  • @missthi
    @missthi 10 месяцев назад +1

    On very large PRs I prefer the individual comments because then we can work in parallel: the other developer can already start thinking about my comment and potential changes, while I can continue reviewing.
    But I guess for smaller ones I should use the Start a review. Also will try the "suggestion" function, havent done that yet 😅

    • @CoderDave
      @CoderDave  10 месяцев назад

      I see your point. However, I have 2 comments. First, if you use the single comment, the PR opener will be flooded by notifications :D and if there are more than 1 reviewer... well... notifications hell haha
      Second, in my opinion there should never be a huge PR... work, to be optimal, should always be split in smaller chunks... that is much easier to handle ;)

  • @CafeAsp
    @CafeAsp 10 месяцев назад

    Good job!

    • @CoderDave
      @CoderDave  10 месяцев назад

      Thank you! Cheers!

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

    Thanks a bunch!

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

      Always happy to help

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

    Superb.

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

    thanks for that tip.

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

      You’re very welcome 🙃

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

    Lovely bro..

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

    great - what are you using for the markup and zoom in the screen capture? it's awesome

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

      Thanks! What I'm using is called "ZoomIt", part of the sysinternals toolset: docs.microsoft.com/en-us/sysinternals/downloads/zoomit

  • @frankjoel4980
    @frankjoel4980 2 года назад +8

    Hey there, I think this is a great introduction, to me more complex questions arise.
    So: Like as you've mentioned, usually there are bigger PRs, so there are like 20 changes.
    After pushing from the DEV side, this interface seems to be completely useless to me. As a reviewer I want to re-check the code adaptions. So when checking the interface many things are "outdated" now. I cannot see the change. Or they are still valid, but I can also NOT see the change.
    I definitely remember on prior versions to be able to see all the changed parts of code, even with those comments.
    For me it's really hard to work on those comments now.
    Do you have and ideas / suggestions / proposals for that way?
    All the best, stay safe!

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

      Hey 👋 I guess you mean after having other changes pushed to the branch, right?
      I’m the PR you still have the list of commits, so you can check that to see what changed.
      And also after merging the PR to the target branch you can rely to the change sets (list of commits), because the whole set of commits is preserved together with the comments (unless you do a squash merge)

    • @BruceRicard
      @BruceRicard Год назад +2

      @@CoderDave That doesn't work as of today. I click on "Show changes since your last review", which seems to be a very useful tool, but the previous comments are all gone. What I want to see is:
      1. The comment I previously made
      2. How the code was when I made this comment
      3. The new code that pretends to be fixing the comment I made
      bonus: why does the commiter have the power to resolve the comments? That just seems ridiculous to me. They should be able to ack the comment, and say that they attempted to fix it, but it's should be the reviewer's responsibility to mark the conversation as resolved.

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

      @@BruceRicard This is an excellent question. I get his points about doing the review then comments, but afterwards...handling comment updates, marking the conversation as resolved, and seeing changes over time all seem a bit confusing. Another PR can be submitted, but then you have to open the old pr along with the new to see what was updated based on your previous comments.

    • @AlecThilenius
      @AlecThilenius 11 месяцев назад

      This question is why I watched this video in the first place. As far as I can tell, Github doesn't have a good answer especially if you use a rebase workflow like we do. Which is truly unbelievable. Guess it's time to finally pull the trigger on a Gitlab migration.

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

      @@AlecThilenius While I have not used it directly, I have a colleague who is using vscode to review his Pull Requests, and all the issues mentioned above that everyone is having seem to be fixed with it. I have tried investigating a solution like GitKraken, and their solution for Pull Requests just doesn't seem to fix the above issues.

  • @Rashilamba-iz4ii
    @Rashilamba-iz4ii Год назад +1

    Thanks

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

    Didn't know that. 👍

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

      Glad it provided value :)

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

    thanks

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

    Hey Dave, thanks for the video. After getting email notification from the reviewer, how do I fix changes ?
    1. Do I update the PR fixes within the git ? (which will be big hassle)
    2. Raise new PR with the fixes ?
    Please do advice and if possible please make a video. Thank you!

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

      Hey there.
      If the reviewer asked for changes, there are 2 things you can do.
      1. If you visit the PR page on GitHub, you will see the review. If the reviewer has proposed some changes, you can "accept them" directly and commit via button-click on the PR directly
      2. If instead there are no proposed changes, but just text comments asking you to change something, you can simply keep committing to the same branch on your local computer, and when you push it to the origin (GitHub) you will see the content of your PR changing

  • @user-ud4ui4nj9r
    @user-ud4ui4nj9r 2 года назад

    Thank you very much!!
    btw the limit time is not necessary I think 🤔

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

      Happy it’s been helpful. Yes the time limit is something I just use 😁

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

    Hello. Nice video, thanks. Question for you, is there a way, to see the list of files that are modified in a tree view or something like it? I came from Bitbucket where there was the list of file on the left and on the right pane, all changes. It was really easy to see all files that changed for this particular Pull Request.

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

      hey! Unfortunately it is not possible out of the box, but you could use an extension like this one: chrome.google.com/webstore/detail/better-pull-request-for-g/nfhdjopbhlggibjlimhdbogflgmbiahc

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

      Hey Daniel, great news! Looks like the folks at GitHub hear you! There is now the beta available for the file tree in PRs.
      Just go to your user settings > Feature Preview > Pull Request File Tree > Enable
      No go to a PR, and in the Files tab you will se the new file tree layout 🥳🥳🥳

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

      @@CoderDave Thanks, I just saw that yesterday. We found at work another way also, just click on . On your keyboard, it will open a Visual Studio Code inside Chrome. So it is easier to do the code review.

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

    thank you. would you consider doing some example solutions for git merge conflict problems?

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

      Happy to be helpful. The problem about merge conflicts is that they are highly dependent on the language you use, and each conflict is different from another one so not sure how helpful a video like that could be 🤔

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

      @@CoderDave yes, that is a fair point. and in my case, though i use windows as my desktop, all my coding is linux-based and i don't use C# or azure. having said that, many merge conflicts are to do with getting tangled up (or lost) in git and trying to understand the many (imo) weird error messages that git throws and the many different commands one needs for stashing, cleaning, unstaging, etc etc. thus some merge conflict walkthroughs might actually be very useful for almost anyone trying to get to grips with git at a higher level.

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

    How do we make highlight for the specific line we went to comment

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

      Just click on the line number next to it 😉

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

    why are you commenting on invididual lines of code? I googled for "how comment on a branch" why are you talking about pull requests?

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

      I don't know why Google showed you my content... but on a video titled "How to Review a Pull Request" you commenting "Why are you talking about Pull Requests" makes me think that perhaps it is not Google's fault...

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

    LGTM

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

      yeah, something like that ;)

  • @MysticCaravan
    @MysticCaravan 11 месяцев назад

    First, the timer/clock is annoying, 2nd 'jabong' ????????

  • @user-nq4bt9lm2d
    @user-nq4bt9lm2d 2 месяца назад

    Thanks!