codacy_pull_requests
Manage pull request quality gates, retrieve analysis details, get file coverage, view diffs, and trigger AI-powered code reviews.
Instructions
[INSTRUCTIONS] Use ONLY when the user explicitly wants to override the quality gate — this is a deliberate decision with security implications. Common mistakes: (1) Bypassing without user confirmation. (2) Bypassing for quality issues that could be fixed — suggest fixing first. This action is idempotent — calling it twice has no additional effect.
Bypass the analysis quality gate for a pull request. Allows merging even if quality standards are not met.. Select operation via the action parameter. Actions: bypass, get, list, coverage, diff, trigger_ai_review
Workflow:
'bypass': [INSTRUCTIONS] Use ONLY when the user explicitly wants to override the quality gate — this is a deliberate decision with security implications. Common mistakes: (1) Bypassing without user confirmation. (2) Bypassing for quality issues that could be fixed — suggest fixing first. This action is idempotent — calling it twice has no additional effect.
Bypass the analysis quality gate for a pull request. Allows merging even if quality standards are not met.. Requires: pullRequestNumber [DESTRUCTIVE]
'get': [INSTRUCTIONS] isUpToStandards=false means the quality gate FAILED. Investigate with codacy_issues.pr_issues and codacy_pull_requests.coverage. Common mistake: treating isUpToStandards=null as passed — null means analysis is not yet complete.
Get pull request details with quality analysis results (isUpToStandards, new/fixed issues, coverage).. Requires: pullRequestNumber
'list': [INSTRUCTIONS] Lists PRs with quality analysis status. Analysis reflects COMMITTED code only — local changes are NOT visible. Common mistake: expecting analysis to update in real-time after a push — there is processing delay. Use codacy_pull_requests.get to check if isAnalysed=true.
List pull requests in a repository with analysis status.
'coverage': Get file-level coverage data for the pull request diff.. Requires: pullRequestNumber
'diff': Get the Git diff for a pull request.. Requires: pullRequestNumber
'trigger_ai_review': [INSTRUCTIONS] This triggers NEW work — use ONLY when the user explicitly asks for an AI code review. NOT idempotent — each call dispatches a new review. Prerequisite: the PR must be analysed (isAnalysed=true). If not, suggest waiting for analysis to complete. Common mistake: triggering review on unanalysed PRs — check with codacy_pull_requests.get first.
Trigger a Codacy AI-powered code review on a pull request.. Requires: pullRequestNumber [DESTRUCTIVE] [Cache-Control: no-store]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (max 100). For: list | |
| action | Yes | Which operation to perform | |
| cursor | No | Pagination cursor. For: list | |
| provider | No | Git provider. For: bypass, get, list, coverage, diff, trigger_ai_review | |
| repository | No | Repository name. For: bypass, get, list, coverage, diff, trigger_ai_review | |
| organization | No | Organization name. For: bypass, get, list, coverage, diff, trigger_ai_review | |
| pullRequestNumber | No | Pull request number. Required for: bypass, get, coverage, diff, trigger_ai_review |