Pull Request Step 2: Reviewing

Overview

This article explains how to complete the Review process for a Pull Request, which involves both the creator and the assigned reviewers. Conducting thorough reviews is vital to maintaining code quality.

circle-info

Best Practices

  • Always add at least one reviewer for accountability.

  • Use the description field to summarize key changes for reviewers.

  • Only merge when all conflicts are resolved, and tests have passed.

  • Use Request Changes instead of simply not approving, as it maintains a clear workflow.

  • Avoid self-review and merging without a reviewer unless it’s a time-critical fix.

Pull Request Steps

Explore our series of articles that walk you through each step of the Pull Request process. You can read them in order or select a specific article for detailed guidance on a particular stage.

Pull Request Overview Tab

The details of a Pull Request help reviewers and contributors gain context about the request. The Overview tab has two sections to review: Pull Request Details and Pull Request Reviewers.

Pull Request Details

Field
Descriptio

Status

Current state of the Pull Request (Created, Review Requested, Changes Requested, and Approved)

Target branch

The branch where changes will be merged.

Source branch

The branch where changes originate.

Created by

User who created the Pull Request.

Created date

When the Pull Request was first created.

Updated date

When the last activity or change to the Pull Request happened.

Description

Summary of the changed for this Pull Request. Written by the creator of the Pull Request.

Pull Request Reviewers

The Reviewers section shows the users assigned to review this Pull Request. The status of each reviewer is indicated by an icon that illustrates (review pending, requested changes, or approved). See the instructions below for more details on the review process.

Review Pull Request

1

Wait for Merge Conflicts Check

  1. When a Pull Request is created, it initially checks for merge conflicts, indicated by a grey banner.

  2. Wait for the banner to change to one of the following:

    1. Green: This branch is able to merge

    2. Orange: This branch has conflicts that must be resolved

  3. If the branch is able to merge, you can continue reviewing the Pull Request by following the instructions in this article.

  4. If the branch has conflicts, you must resolve the conflicts before continuing to review this Pull Request. See the following article to learning how to resolve conflicts.

2

(Optional) Add Reviewers

Adding reviewers ensures code quality, helps identify conflicts early, and enforces team approval processes. All reviewers must click Approve before the Pull Request can be merged.

circle-check

Self-Review

  1. In the Reviewers section, click the Pencil icon.

  2. Click Add for each user you want to review this Pull Request.

  3. Click Save.

  4. The added reviewers will be listed in the Reviewers section, and the Pull Request status will change to Review Requested.

3

Review Changes

To review the Pull Request, each reviewer must log into Cloud DevOps and follow these steps:

circle-info

Pull requests awaiting review are marked with the status Review Requested, and the Reviewers' icons are displayed.

circle-check

Self-Review

  1. Click Pull requests from the left sidebar menu.

  2. Click the Pull Request to review.

  3. Click the Components changed tab.

  4. Click a component to review.

circle-exclamation
  1. When viewing a component, the source code for Target and Source is displayed side-by-side with differences highlighted.

    1. Red: Lines to be removed.

    2. Green: Lines to be added.

  2. Repeat the review process for each component.

4

(Optional) Request Changes

When reviewing, use Request Changes to indicate that fixes are needed before approval. This status prompts the Pull Request creator to update the source branch with the necessary changes. Since the request doesn't specify what needs to be changed, communicate the specific changes required directly to your team.

circle-check

Self-Review

  1. Click Request changes.

  2. After requesting changes, the Pull Request status will change to Changes Requested.

Resubmit for Review

After making the requested changes, resubmit the Pull Request for review by the Reviewer who requested them.

  1. Click the Pull Request.

  2. Click the Refresh icon next to the reviewer who requested the review.

5

Approve

Once a reviewer has completed their review of all components and any completed change requests, they must approve the Pull Request before it can be merged.

circle-exclamation
circle-check

Self-Review

  1. Click Approve.

  2. After all reviewers approve, the Pull Request status will change to Approved, and it can be merged.

6

Next Step: Merging

After the Pull Request is approved, the changes from the source branch are ready to be merged into the target branch. Proceed to the following article for instructions on the merge process.

Last updated

Was this helpful?