---
title: "How to keep Azure Repos review comments tied to an iteration | Proofline"
description: "Record the pull request’s repository ID, iteration ID and source and target commits when you read the diff."
url: https://proofline.sh/learn/azure-repos-review-iterations/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# How to keep Azure Repos review comments tied to an iteration

Record the pull request’s repository ID, iteration ID and source and target commits when you read the diff. A review appears to continue under one pull request number as its source changes. The iteration record gives you the inputs for a particular pass.

Code review The Proofline team November 23, 2026 1 min read

## Preserve a comment when its line moves

Imagine iteration 1 adds a conditional to line 18. Iteration 2 moves the conditional while incorporating feedback. An external reviewer returns a late result for line 18 of iteration 1. If the adapter reads just the current file and its line number, the comment can land on a different statement.

Ask the adapter to show the iteration it analyzed and the source and target commits it got from Azure Repos. If the comment is still needed, check it on the new iteration before publishing a new location. Keep the original receipt available for the older revision. Azure Repos lists iterations with their source, target and common commits. [Azure Repos pull request iterations API](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-iterations/list?view=azure-devops-rest-7.1)

If the branch policy requires an approval on a new iteration, inspect the host’s policy status and [the identity of the last pusher](/learn/azure-repos-last-pusher-approval/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Can a reviewer push a fix and still count as an approver in Azure Repos?](/learn/azure-repos-last-pusher-approval/)
    
    Code review The Proofline team November 23, 2026 1 min read
    
-   ### [How to choose a review tool when you cannot change code hosts](/learn/choose-review-workflow-for-source-host/)
    
    Code review The Proofline team November 23, 2026 1 min read
