capabilities.work

Review the Oldest Active Pull Request

A 3-step recipe with Azure DevOps. We can help you get access.

Recipe · 3 steps

Review the Oldest Active Pull Request

with Azure DevOps · Software Construction Management

Find the oldest active pull request and add a review comment.

  1. List active pull requests in the repository, returning the oldest first.
  2. Fetch the selected pull request with its commits expanded so the reviewer has full context.
  3. Post an active comment thread asking for a review on the selected pull request.
What you'll need to have ready
  • apiVersion: Azure DevOps REST API version (e.g. 7.1).
  • repositoryId: Repository ID or name to scan for active pull requests.
  • commentText: Review comment to post on the selected pull request.
  • accessToken: Azure DevOps bearer (OAuth 2.0) access token.
For your developer

Arazzo workflow microsoft-azure-devops:review-oldest-active-pull-request, 3 operations: pullRequests_list → pullRequests_get → pullRequests_addComment. Specs on APIs.io.