pr-review

Automate Azure DevOps pull request reviews with Python scripts.

206|14|Updated Sep 19, 2021
One-click install
npx skills add https://github.com/JocysCom/FocusLogger --skill pr-review-jocyscom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review
Source: https://github.com/JocysCom/FocusLogger/tree/main/.agents/skills/pr-review
Command: npx skills add https://github.com/JocysCom/FocusLogger --skill pr-review-jocyscom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, requests-ntlm, Pillow, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the process of reviewing pull requests in Azure DevOps Git repositories, saving time and reducing manual effort.

Core Features & Use Cases

  • Automated PR Review: Fetches PR metadata, prepares local branches, exports diffs, generates review reports, and posts comments back to Azure DevOps.
  • AI-Assisted Workflow: Utilizes Python scripts to streamline the review process, including fetching PR metadata, preparing local branches, exporting diffs, generating review reports, and posting comments.
  • Use Case: Imagine you have a pull request in Azure DevOps that needs review. Use this Skill to automatically fetch the PR metadata, prepare a local branch, export the diffs, generate a review report, and post comments back to the PR.

Quick Start

Use the pr-review skill to start the PR review workflow by running the command 'python .ai/skills/pr-review/scripts/s01_reset_workspace.py'.

Frequently Asked Questions about pr-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pull request review for Azure DevOps Git repositories?

Automate Azure DevOps pull request review by running Python scripts that fetch PR metadata, prepare local branches, export diffs, generate review reports, and post comments back to the repository automatically.

What is the process for generating a code review report from a Git pull request?

Generating a code review report involves fetching PR metadata, preparing a local branch, and exporting Git diffs to analyze the code changes. Python scripts then process these diffs to produce the final review report.

Do I need Python and Git installed to automate Azure DevOps PR reviews?

Yes, automating Azure DevOps PR reviews requires Python 3.9 or higher and Git installed locally. These tools are necessary to fetch metadata, prepare branches, and export diffs for the review workflow.

Can I post automated code review comments directly back to Azure DevOps pull requests?

Yes, the PR review workflow can post automated comments directly back to Azure DevOps pull requests. After generating the review report from local diff analysis, scripts submit the feedback to the remote repository.

What is the best way to fetch pull request metadata for automated code review?

The best way to fetch pull request metadata for automated code review is using Python scripts that interact with Azure DevOps APIs. This retrieves PR details, prepares local branches, and exports diffs for analysis.

Why does my automated PR review workflow require local branch preparation?

Automated PR review workflows require local branch preparation to accurately export and analyze Git diffs. Fetching PR metadata and setting up the local branch ensures the review report reflects the exact code changes.