Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Its time for PullRequests 2.0

Its time for PullRequests 2.0

talk title:

How to Create a Good Pull Request — and How to Review One?
(can also be called as)
Its time for PullRequest 2.0
(can also be called as)
Is Pull Request really a thing?

description:

The first thing I do at work every day 📈 is to review all open pull requests. Likewise, I try to open ☑️ a pull request before I complete my day. One day I asked myself, am I doing both in the correct way? And PR really benefits me.

Like starting from what is a pull request?
Why and When do I have to create one?
What are the points I should remember when I am creating a PR?
How to draft the description?
How to raise a conversation and how to answer one?

And I understood many factors answering the above and practised them continuously. This talk will share my experience on these points and the answers I found for the above questions with a clear demo.

Tweet

Other Decks in Technology

Transcript

  1. What’s in for today? ✔ What are Pull Requests? ✔

    PRs - Real life example & Developer Scenario ✔ Problems faced around PRs ✔ How to create a perfect pull request? ✔ How to review a pull request like a pro? ✔ Automate the Chores ✔ What’s next?
  2. Pull Requests Recipe Book Friends Recipe 3 Recipe 2 Recipe

    1 Git request-pull [-p] <start> <url> [<end>] Review Recipes Share Recipes Add to Book Recipes
  3. Pull Requests Recipe Book Friends Recipe 3 Recipe 2 Recipe

    1 Git request-pull [-p] <start> <url> [<end>] Review Recipes Share Recipes Add to Book Recipes
  4. Pull Requests Recipe Book Friends Recipe 3 Recipe 2 Recipe

    1 Git request-pull [-p] <start> <url> [<end>] Review Recipes Share Recipes Add to Book Recipes Repository Code Merge Code Review Pull Request Features/Code Developers
  5. Why code review? 00 04 08 12 16 20 Code

    Reviews Tools Testing Management Code Style &
 Standards Research 
 Design, Etc Automate Others
  6. Why size is important Average PR time by Pull Request

    size PRs under 200 diff size get merged twice as fast
  7. Why size is important PRs under 15 minute review time

    get picked up 20x faster Average Pull request pick-up time
  8. 33 How does a checklist looks? ✔ Are the tests

    cases covered and passed? ✔ Do the changes follow de f ined architecture? ✔ Can it be simpli f ied to a better version? ✔ Is the code modular/clear and easily understandable? ✔ Do it follows SRP and other coding principles?
  9. 36 Last things… ✔ Avoid being too serious ✔ Respect

    everyone’s preference ✔ Never make the process personal ✔ Add constructive feedback ✔ Teach, don’t just tell
  10. 37 ✔ Be the change ✔ Talk to your lead

    / manager ✔ Talk to your team ✔ Propose this one "crazy idea" Now what?