Git & GitHub Interview Question #73

What are pull request approvals and requested changes?

Undo & Recovery, Tags, Forks, Pull Requests & Code Review Mid-Level Intermediate

Quick Interview Answer

GitHub reviewers can submit review outcomes such as approval or a request for changes, depending on repository permissions and configuration. An approval indicates that the reviewer accepts the proposed changes from their review perspective.

Detailed Explanation

GitHub reviewers can submit review outcomes such as approval or a request for changes, depending on repository permissions and configuration. An approval indicates that the reviewer accepts the proposed changes from their review perspective.

A request for changes communicates that issues should be addressed before merge. Branch protection or rulesets can require a certain review state before GitHub permits merging.

Code Example

# After addressing review feedback:
git add .
git commit -m "Address pull request review"
git push