# Review a GitHub PR with your agent

*[Tutorial 12 of 15](/docs/tutorials) · Connect tools and collaborate. Follow the sequence or bring your own equivalent inputs.*

**At a glance**

1. [**Verify the connected repository**](#verify-the-connected-repository): Check that Adapter Hub reaches the repository and its CI.
2. [**Review the PR against its purpose**](#review-the-pr-against-its-purpose): Read the diff and CI evidence against the task it claims to finish.
3. [**Choose the follow-up**](#choose-the-follow-up): Approve, request changes, or file the next task.

Give your agent repository evidence through Adapter Hub, then connect the review to your project requirements.

**You’ll use:** Adapter Hub, GitHub, a review agent profile, and optionally Task Board and knowledge base. **You’ll finish with:** a source-linked review of one PR and its current CI status.

## Before you start

Choose a PR you may access. An authorized admin must connect GitHub in Adapter Hub and include the repository in its scope. If the connection already exists, use it rather than adding another one.

Bring one PR URL and, if available, the task or specification explaining its intended behavior. See [Connect GitHub](/docs/how-to/connect-your-systems#connect-github) if your organization has no connection. You can use your current coding agent for this read-only exercise; an existing review profile adds your team's review criteria but is not required to get started.

> **Continue the collaboration storyline:** use the [personal news intelligence collaboration brief](/docs-assets/examples/personal-news-collaboration-brief.md). Choose a PR you may access that fixes or can be reviewed like the stale-answer issue; the fictional brief supplies the purpose, not a live repository or permission.

## 1. Verify the connected repository

**Ready-to-use example**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Confirm my MassifyAI organization and project, list the GitHub connections available through MassifyAI, and identify whether any includes the current application repository. Look for a permitted PR about the personal news briefing's stale summary or citation fix. If there is one unambiguous match, read it and report its actual URL, base/head revisions, state, description and source freshness. Do not choose an unrelated PR just to complete the exercise.

If no matching PR or repository access exists, read https://www.massifyai.com/docs-assets/examples/personal-news-pr-review.md as a sample patch instead. Make no external changes.
```

**Prompt template**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Confirm my MassifyAI organization and project, list the GitHub connections available through MassifyAI, and identify whether any includes <repository>. Look for a permitted PR about <PR purpose>. If there is one unambiguous match, read it and report its actual URL, base/head revisions, state, description and source freshness. Do not choose an unrelated PR just to complete the exercise.

If no matching PR or repository access exists, read <sample patch> as a sample patch instead. Make no external changes.
```

This checks access before you ask for a review. Do not infer that all repositories are available because the organization has a GitHub connection.

Keep the PR head revision, base revision, and merge commit separate. A merged PR is useful for practice, but checks on its merge commit do not establish the checks on its original head. A list of changed paths is not a diff.

## 2. Review the PR against its purpose

**Ready-to-use example**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Continue with the permitted PR read above, or the sample patch at https://www.massifyai.com/docs-assets/examples/personal-news-pr-review.md if the previous step used the fixture path. Use the actual PR description when available and https://www.massifyai.com/docs-assets/examples/personal-news-collaboration-brief.md as the practice storyline. Use this coding agent and relevant available review skills.

Inspect the accessible base/head diff, discussion, and CI evidence. Check whether changing the source during a pending answer can ever restore an old answer or citation, whether an older request can alter newer loading controls, and whether a deterministic regression exercises that ordering. Identify actionable findings with file/line evidence where available. Distinguish verified findings from checks that remain unavailable. Do not post, approve, merge, rerun CI, or change the PR.
```

**Prompt template**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Continue with the permitted PR read above, or the sample patch at <sample patch> if the previous step used the fixture path. Use the actual PR description when available and <project brief> as the practice storyline. Use this coding agent and relevant available review skills.

Inspect the accessible base/head diff, discussion, and CI evidence. Check whether changing the source during a pending answer can ever restore an old answer or citation, whether an older request can alter newer loading controls, and whether a deterministic regression exercises that ordering. Identify actionable findings with file/line evidence where available. Distinguish verified findings from checks that remain unavailable. Do not post, approve, merge, rerun CI, or change the PR.
```

The example reviews the source-consistency fix that becomes reusable expertise in Tutorial 13. Switch to **Prompt template** for another PR or specification.

If the connection cannot supply the diff or a check's details, the review must identify what it did not inspect. A passing check is evidence for that check, not proof of every requirement.

For a partial read, ask the agent to name exactly what is available: PR metadata, discussion, file contents at a known commit, or aggregate CI status. It can inspect those sources and report their limits. To finish a regression review, provide the base/head diff through another authorized GitHub view or a local checkout. Keep any CI result tied to its exact commit; an unavailable result does not mean failure, and an aggregate success does not include the individual logs.

## 3. Choose the follow-up

Review the findings yourself. When a fix is warranted, create or update the agreed task with the PR revision, evidence, and acceptance check. Ask separately before posting anything to GitHub.

A useful finding says what breaks, where, and how to verify a correction—for example, “The guide promises recording for a client that this version does not support; correct the client-specific sentence and check it against the supported-client table.” If no actionable issue is found, the result should still list what was checked and what remains unknown. A read-only review can finish here; posting a review is a separate action.

> **Check the result:** every important finding points to a source, and pending, failed, successful, or unavailable CI results are distinguished. Connected Asana and the native Task Board remain separate systems; linking evidence does not imply automatic synchronization.

***

Next: [Share a review skill with a teammate](/docs/tutorials/share-team-expertise).
