Skip to content

Instantly share code, notes, and snippets.

@just-Bri
Last active April 28, 2022 14:10
Show Gist options
  • Save just-Bri/5cc8e524ea9aaed60393c4163e3effc7 to your computer and use it in GitHub Desktop.
Save just-Bri/5cc8e524ea9aaed60393c4163e3effc7 to your computer and use it in GitHub Desktop.
Proposal for PR Feedback guidelines

HIPPO

This is intended to be a, hopefully simple, framework for leaving PR feedback.

(H) Hold up:

  • Changes requested
  • Something that must change for PR approval.
    Syntax/Standards/Bug

    Example Usage:

    • H: I noticed a UI bug when scrolling <ComponentName />.

(I) Improvement:

  • Changes requested
  • Something that should be changed, reason/specifics must be given.
    Possibly personal opinion based, may require 3rd party input.
    Refactoring comes to mind.

    Example Usage:

    • I: Refactor uvw() and xyz() to a hook or function that can be shared between thingOne and thingTwo.

(PP) Personal Preference:

  • Comment / Possible Changes requested
  • Something I would do, but is not necessary.
    Think of the classic "nit"
    Something small like function naming, use of ternary vs if.

    Example Usage:

    • PP: I usually prefer to use action names at the front of functions function getUserState().

(O) Opinion:

  • Comment / Purely Discussion
  • Something that I would have done differently.
    Personal preference but this could require a much larger lift.
    These rarely get used because it is really just the reviewer expressing their thoughts.
    An ideal usage of this is to educate a junior member of the team and perhaps follow up with a conversation around it post review.

    Example Usage:

    • O: I like your idea of how to handle these conditions but I think there may be room for improvement in the future. We can hop on a call this afternoon to talk about other options in terms of structuring these components.
@coopy
Copy link

coopy commented Apr 27, 2022

Overall, I like this. There may be some ambiguity between PP / O but I am happy to put this in practice and give it a whirl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment