Skip to content

Commit 522d1ae

Browse files
docs: jira ticket metadata and reviewer context CF-2209 (#2604)
* docs: jira ticket metadata and reviewer context CF-2209 * docs: #2604 feedback CF-2209
1 parent f59299b commit 522d1ae

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

docs/codacy-ai/codacy-ai.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What is Codacy AI?
44

5-
Codacy AI is a set of optional features integrated into the Software designed to optimise development workflows and elevate code quality standards through automated issue descriptions, actionable recommendations and false-positive detection, is available for the Customer.
5+
Codacy AI is a set of optional features integrated into the Software, designed to optimise development workflows and elevate code quality standards through automated issue descriptions, actionable recommendations and false-positive detection. These features are available for the Customer.
66

77
Codacy AI utilizes only enterprise-grade instances of OpenAI and Google Gemini services with enhanced security, privacy, and data protection features. Customer Code processed through Codacy AI will not be used by Codacy, OpenAI, or any third-party AI provider for training, improving, or developing artificial intelligence models, machine learning algorithms, or any other automated systems.
88

@@ -66,9 +66,9 @@ More details about [False Positives here](../repositories/commits.md#false-posit
6666
!!! note
6767
AI Reviewer is currently only available on GitHub, for all Team and Business plans.
6868

69-
_This feature leverages Google Gemini models, and is strictly opt-in: it will only run on repositories or projects where a repository admin has enabled it._
69+
_This feature leverages Google Gemini models, and is strictly opt-in; it will only run on repositories or organizations where an admin has enabled it._
7070

71-
The AI Reviewer combines the reliability of deterministic, rule-based static code analysis with the enhanced context and prioritization capabilities of AI. It draws in the necessary context from source code and PR metadata to ensure the business intent matches the technical outcome, and can catch logic gaps that conventional scanners (and human reviewers) often miss.
71+
The AI Reviewer combines the reliability of deterministic, rule-based static code analysis with the enhanced context and prioritization capabilities of AI. It draws in the necessary context from PR metadata, Jira ticket if [integration exists](../organizations/integrations/jira-integration.md), source code, and Codacy data to ensure the business intent matches the technical outcome, and can catch logic gaps that conventional scanners (and human reviewers) often miss.
7272

7373
More details about [AI Reviewer here](../repositories-configure/integrations/github-integration.md#ai-reviewer).
7474

@@ -80,6 +80,12 @@ More details about [AI Reviewer here](../repositories-configure/integrations/git
8080
4. Save your changes. Once enabled, Codacy will start adding a Summary to your pull requests based on the AI-enriched reviews.
8181
5. To request a PR review, click **Run Reviewer** in the Summary or call our [public API](https://api.codacy.com/api/api-docs#triggerpullrequestaireview). Your review will be published as soon as it's ready.
8282

83+
#### Jira context for the AI Reviewer
84+
85+
If the Jira integration is enabled, we will automatically attempt to detect the Jira ticket key (ABC-123, case-insensitive) in the Pull request metadata. If found, the ticket title and description will be used to enrich the context of our reviewer.
86+
87+
More about the [Jira integration here](../organizations/integrations/jira-integration.md).
88+
8389
#### Custom Instructions
8490

8591
To improve the results of the AI Reviewer, you can provide custom instructions to the AI Reviewer. These instructions are specific to a repository and help the AI Reviewer understand the structure of the code, the business logic of the project, and your own preferences.

docs/organizations/integrations/jira-integration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ To uninstall the Jira integration, open your organization **Integrations**, page
3333
!!! important
3434
Uninstalling the Jira integration as described above deletes all associated open items. You can alternatively uninstall the Jira integration on the Jira website: this doesn't delete anything, but it prevents Codacy from opening new Jira-related items.
3535

36+
## AI reviewer context
37+
38+
!!! tip
39+
AI Reviewer is currently only available on GitHub, for all Team and Business plans.
40+
41+
If the repository or organization has the AI Reviewer enabled, it will automatically check the Pull Request metadata for a Jira ticket key (ABC-123, case-insensitive). The title and description will be fetched to enrich the review context, and the process will cross-check the required deliverable and acceptance criteria with the existing code changes.
42+
43+
More details about [AI Reviewer here](../../repositories-configure/integrations/github-integration.md#ai-reviewer).
44+
3645
## Creating Jira tickets from issues, dependencies and files
3746

3847
Installing the Jira integration enables the feature of creating Jira tickets from issues, dependencies and files

docs/repositories-configure/integrations/github-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ When enabled, Codacy posts a **Codacy's Analysis Summary** comment on your pull
4848
!!! note
4949
If you enable the AI Reviewer, consider disabling AI-enhanced comments to avoid receiving duplicate comments on Codacy issues.
5050

51-
The AI Reviewer extends Pull request review with an AI-powered code analysis. It combines the reliability of deterministic, rule-based static code analysis with the enhanced context and prioritization capabilities of AI. It draws in the necessary context from source code and PR metadata to ensure the business intent matches the technical outcome, and can catch logic gaps that conventional scanners (and human reviewers) often miss.
51+
The AI Reviewer extends Pull request reviews with an AI-powered code analysis. It combines the reliability of deterministic, rule-based static code analysis with the enhanced context and prioritization capabilities of AI. It draws in the necessary context from PR metadata, Jira ticket if [integration exists](../../organizations/integrations/jira-integration.md), source code, and Codacy data to ensure the business intent matches the technical outcome, and can catch logic gaps that conventional scanners (and human reviewers) often miss.
5252

5353
It provides feedback on missing or weak tests, complex or duplicated code, and keeps security concerns up to date. Beyond that, it adds contextual insights about whether the changes follow the requirements, business rules, and logic used in the project.
5454

0 commit comments

Comments
 (0)