0
0
Gitdevops~5 mins

Code review in pull requests in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a pull request in Git?
A pull request is a way to ask team members to review and approve your code changes before merging them into the main project branch.
Click to reveal answer
beginner
Why do we do code reviews in pull requests?
Code reviews help catch mistakes early, improve code quality, share knowledge, and keep the project consistent.
Click to reveal answer
beginner
What should you check during a code review?
Check if the code works as expected, follows style rules, is easy to understand, and does not break anything else.
Click to reveal answer
beginner
How do you leave feedback in a pull request?
You can comment directly on lines of code, suggest changes, or approve the pull request if everything looks good.
Click to reveal answer
beginner
What happens after a pull request is approved?
Once approved, the code changes can be merged into the main branch, making them part of the project.
Click to reveal answer
What is the main purpose of a pull request?
ATo review and approve code changes before merging
BTo delete old branches
CTo create a backup of the repository
DTo run automated tests only
Which of the following is NOT a typical step in a code review?
AChecking code style
BApproving or requesting changes
CSuggesting improvements
DRunning the code on a live server without testing
How can you provide feedback on a specific line in a pull request?
ABy deleting the pull request
BBy commenting directly on that line
CBy editing the code yourself without approval
DBy sending an email
What should you do if you find a bug during a code review?
ADelete the pull request
BIgnore it and approve anyway
CRequest changes and explain the issue
DMerge the code immediately
What happens after a pull request is merged?
AThe code becomes part of the main branch
BThe code is deleted
CThe pull request is reopened automatically
DThe repository is archived
Explain the process and benefits of code review in pull requests.
Think about how teammates check each other's work before adding it to the project.
You got /5 concepts.
    Describe how you would give constructive feedback during a pull request review.
    Imagine helping a friend improve their work kindly and clearly.
    You got /5 concepts.