Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Tetris Colors #3

Merged
merged 3 commits into from
Jun 4, 2021
Merged

Change Tetris Colors #3

merged 3 commits into from
Jun 4, 2021

Conversation

github-learning-lab[bot]
Copy link
Contributor

Using request changes on a pull request

Thanks again for all your help on that last pull request. With our powers combined, anything is possible! This next change might introduce some new changes that aren't going to look great.

Sometimes, the author might identify that something isn't working. They might need a helping hand 馃憢 to solve the problem. In other instances, it might only work in their environment. When reviewing a pull request, look at and test the code to pinpoint any bugs or unexpected behavior.

Writing a review

Review the diff

Reviewing the diff, the comparison of the proposed code, in the context of the whole project. Could it introduce performance problems, or security vulnerabilities? Try to predict unintended consequences that this change could cause.

Try it out

For most things, actually trying out the proposed change is a good idea. This makes it a lot easier to tell if the actual change matches the intention. You can do this by:

  • Cloning the repository, and checking out to the branch compared in the pull request. Run the application in your local development environment.
  • Deploying the pull request to a review-lab or staging environment (as appropriate).

When summarizing your review, let the author know if you completed any of these tests.

Empathy and Constructive Feedback

The goal of providing feedback on a pull request is to ensure that the best possible change is being added. Sometimes, a change isn't addressing the problem in the best possible way. It's the reviewer's responsibility to provide meaningful and constructive feedback.

Requesting Changes 101

Before you submit your review, your line comments are pending and only visible to you. You can edit pending comments anytime before you submit your review. To cancel a pending review and its pending comments, scroll down to the end of the page in the Conversation tab. Then click Cancel review.

Step 4: Leave a review that asks for changes

If you could check out this code for me and tell me what is wrong, that would be fantastic.

鈱笍 Activity: Requesting changes

  1. On the pull request, click Files changed
  2. Hover over the line of code where you'd like to add a comment, and click the blue comment icon
  3. In the comment window, type your comment
  4. Click Start a review
    • If you have already started a review, you can click Add review comment
  5. Above the changed code, click Review changes
  6. Type a comment summarizing your feedback on the proposed changes
    • Note: The problem here is that too many Tetris pieces are the same color. In your review, you might want to suggest that I choose colors which would be easier to see when playing the game.
  7. Select Request changes to submit feedback introducing changes necessary before merging
  8. Click Submit review

Return to this pull request for my next comment

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps.

var s = { size: 3, blocks: [0x06C0, 0x8C40, 0x6C00, 0x4620], color: 'teal' };
var t = { size: 3, blocks: [0x0E40, 0x4C40, 0x4E00, 0x4640], color: 'coral' };
var z = { size: 3, blocks: [0x0C60, 0x4C80, 0xC600, 0x2640], color: 'olive' };
var i = { size: 4, blocks: [0x0F00, 0x2222, 0x00F0, 0x4444], color: 'blue' };

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that i and t have the same color, maybe we can have different colors.
Same for j and z

@github-learning-lab
Copy link
Contributor Author

Requesting changes

Thanks for making that suggestion on my change. In my excitement to ship more stuff, I must have gotten distracted while picking colors. 馃槵 I'm making a change to this branch to fix my mistake.

Not all the pull request reviews you perform in the future will decide the color of the blocks in our Tetris game. 馃槃

Although you may want to leave short comments like: 馃憤, 馃憥馃徑, awesome!, or no; these don't give the author much detail. Provide comments like the following to enable the author of the pull request to respond:

  • This looks like it鈥檒l be helpful to our users, but I鈥檓 not sure about the flow. I also have some concerns about the efficiency of these queries.
  • Although this feature might be useful, do we have any data that identifies that our users need it?

Step 5: Practice reviews

While you were reading this, I made your suggested changes. If you could approve my pull request, that would be awesome!

鈱笍 Activity: Give another pull request review

  1. In the pull request, scroll down to the bottom and look for your own review status
  2. Next to your review, click Approve changes

Return to this pull request for my next comment

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps.

@github-learning-lab github-learning-lab bot merged commit 8c892dd into main Jun 4, 2021
@github-learning-lab
Copy link
Contributor Author

Step 8: Don't just review, suggest!

Now that you have explored the different ways you can review a pull request it is time to learn how to use the suggest changes functionality. This feature, enables you to recommend a change to a pull request that the author can commit with the push of a button!

鈱笍 Activity: Create a pull request

  1. Create a pull request using the base: main and compare: update-readme branches

Click here to start the pull request

@github-learning-lab github-learning-lab bot deleted the update-colors branch June 4, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants