Skip to content

Add Documentation for Linear and Jira Integration #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions docs/integrations/Jira/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Jira Integration
description: Integrate CodeRabbit with Jira.
sidebar_label: Linked and Related Issues
image: "/preview_meta.jpg"
---

<head>
<meta charSet="utf-8" />
<meta name="title" content="Utilize CodeRabbit with Jira" />
<meta name="description" content="Integrate CodeRabbit with Jira" />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://coderabbit.ai/" />
<meta property="og:title" content="Utilize CodeRabbit with Jira" />
<meta property="og:description" content="CodeRabbit: AI-powered Code Reviews" />
<meta property="og:image" content="/preview_meta.jpg" />

<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Utilize CodeRabbit with Jira" />
<meta name="twitter:description" content="CodeRabbit: AI-powered Code Reviews" />
</head>

### Linking Issues

After successfully integrating CodeRabbit with Jira, you gain the ability to link Jira issues directly to your pull requests.

To link a Jira issue to a pull request, simply include the Jira Issue ID in the pull request description. For instance:

Jira issue: TEK-01

This indicates that the pull request addresses a specific issue, such as fixing a bug. When the pull request is submitted with the associated Jira Issue ID, CodeRabbit automatically retrieves the corresponding issue and evaluates whether the pull request fulfills its objectives.

:::info
You can view the assessment outcome in the Walkthrough section of CodeRabbit's Review
:::

Upon posting the review findings, CodeRabbit provides details about the issue's objectives, confirms whether they were met, and offers additional explanations if needed.

### Finding Related Issues

One of the key features of CodeRabbit's Jira integration is its ability to discover existing related Jira issues addressed in the pull request. Leveraging RAG (Retrieval-Augmented Generation), CodeRabbit enhances its AI capabilities. RAG empowers AI models to incorporate external data sources beyond their training sets or predefined parameters, thereby enhancing their responses to given prompts.

After integrating with Jira, CodeRabbit scans through open issues, indexing them for future reference. This means that pre-existing issues are retrieved, indexed into a Vector database, and subsequently searched for each new pull request.
:::info
Indexing occurs periodically on a scheduled basis. As a result, newly created issues or those not yet scheduled for indexing may not be immediately detected by CodeRabbit.
:::

If any related issues are identified, CodeRabbit highlights them, providing insights into the pull request's coverage and facilitating collaboration between developers and reviewers.
61 changes: 61 additions & 0 deletions docs/integrations/Jira/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: Integrate CodeRabbit with Jira
description: Integrate CodeRabbit with Jira.
sidebar_label: Setup
image: "/preview_meta.jpg"
---

<head>
<meta charSet="utf-8" />
<meta name="title" content="Connect CodeRabbit with Jira" />
<meta name="description" content="Integrate CodeRabbit with Jira" />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://coderabbit.ai/" />
<meta property="og:title" content="Connect CodeRabbit with Jira" />
<meta property="og:description" content="CodeRabbit: AI-powered Code Reviews" />
<meta property="og:image" content="/preview_meta.jpg" />

<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Connect CodeRabbit with Jira" />
<meta name="twitter:description" content="CodeRabbit: AI-powered Code Reviews" />
</head>

Jira is a widely-used project management tool that helps teams organize tasks, track progress, and collaborate effectively. With Jira, teams can create issues to represent tasks, bugs, or features, assign them to team members, set due dates, and monitor their status throughout the project lifecycle.

:::note
Visit [Jira](https://www.atlassian.com/software/jira) if you're unfamiliar and would like to learn more.
:::

As your team works on resolving Jira issues, CodeRabbit automatically assesses the changes made in the associated pull requests, helping you meet project objectives and maintain code quality standards.

### Connect CodeRabbit with Jira

![Integrations Page](../images/cr-integrations-light.png#gh-light-mode-only)
![Integrations Page](../images/cr-integrations-dark.png#gh-dark-mode-only)

Visit the integrations page by selecting Integrations on the left sidebar on the webapp. On this page, toggle the button for the Jira Integration.

![Integrations Page](../images/Jira/jira-login-light.png#gh-light-mode-only)
![Integrations Page](../images/Jira/jira-login-dark.png#gh-dark-mode-only)

Once toggling, you will be redirected over to Jira's authorization page. If you are not signed in, please sign in with your Jira credentials.

![Integrations Page](../images/Jira/jira-auth-light.png#gh-light-mode-only)
![Integrations Page](../images/Jira/jira-auth-dark.png#gh-dark-mode-only)

Lastly, Jira will ask you to authorize CodeRabbit for read access to Jira Issues and read/write access to manage webhooks.

![Integrations Page](../images/Jira/jira-connected-dark.png#gh-dark-mode-only)
![Integrations Page](../images/Jira/jira-connected-light.png#gh-light-mode-only)

**That's It!** Jira will redirect you back to the CodeRabbit integrations page where you should see the toggle enabled for the Jira Integration.

### Disconnect CodeRabbit with Jira

Disconnecting the integration is seamless. Just toggle the button off for the Jira Integration and CodeRabbit will automatically disconnect.

---

Next we will look at how we can link Jira issues and see how CodeRabbit assess them within the Pull Request.
51 changes: 51 additions & 0 deletions docs/integrations/Linear/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Linear Integration
description: Utilize CodeRabbit with Linear.
sidebar_label: Linked and Related Issues
image: "/preview_meta.jpg"
---

<head>
<meta charSet="utf-8" />
<meta name="title" content="Utilize CodeRabbit with Linear" />
<meta name="description" content="Integrate CodeRabbit with Linear" />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://coderabbit.ai/" />
<meta property="og:title" content="Utilize CodeRabbit with Linear" />
<meta property="og:description" content="CodeRabbit: AI-powered Code Reviews" />
<meta property="og:image" content="/preview_meta.jpg" />

<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Utilize CodeRabbit with Linear" />
<meta name="twitter:description" content="CodeRabbit: AI-powered Code Reviews" />
</head>

### Linking Issues

After successfully integrating CodeRabbit with Linear, you gain the ability to link Linear issues directly to your pull requests.

To link a Linear issue to a pull request, simply include the Linear Issue ID in the pull request description.

For instance:

Linear issue: **_COD-86_**

![Linear Issue](../images/Linear/link/linear-linked-issue.png)

This indicates that the pull request addresses a specific issue, such as adding a new feature. In this simple example, the issue created on linear specified to implement the division functionality for the simple calculator.

When the pull request is submitted with the associated Linear Issue ID, CodeRabbit automatically retrieves the corresponding issue and evaluates whether the pull request fulfills its objectives.

:::info
You can view the assessment outcome in the Walkthrough section of CodeRabbit's Review.
:::

Upon posting the review findings, CodeRabbit provides details about the issue's objectives, confirms whether they were met, and offers additional explanations if needed. For example, here, the developer added the division functionality for the simple calculator in the pull request. CodeRabbit was able to find that issue, assess whether the pull request did indeed resolve the issue, and provided the assessment as seen below.

![Linear Issue Response](../images/Linear/link/linear-assessment.png)

### Finding Related Issues

Another key feature of CodeRabbit's Linear integration is its ability to discover existing related Linear issues addressed in a pull request. Leveraging RAG (Retrieval-Augmented Generation) as described in [Jira Integration - Finding Related Issues](../Jira/link#finding-related-issues)
Copy link
Contributor

@coderabbitai coderabbitai bot Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

The verification process confirms that the link to the Jira Integration documentation is incorrect or outdated, as indicated by the 404 HTTP status code received when attempting to access the link. This supports the review comment's suggestion to verify the link's correctness and ensure it leads to the intended section.

Analysis chain

The section on finding related issues is insightful. However, the link to the Jira Integration documentation might be incorrect or outdated, as indicated by previous comments. Verify the link's correctness and ensure it leads to the intended section.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the link to the Jira Integration documentation is correct and functional.
curl -o /dev/null -s -w "%{http_code}\n" https://coderabbit.ai/docs/integrations/Jira/link#finding-related-issues

Length of output: 119

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are reviews working ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guritfaq, yes, the review process is operational and continuously being enhanced to support new features and integrations, including those with Jira, Linear, and Self-Managed GitLab as detailed in the PR. These updates are part of our commitment to streamline project management processes and maintain high code quality standards. If you have specific concerns or features you're curious about, feel free to ask!

61 changes: 61 additions & 0 deletions docs/integrations/Linear/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: Integrate CodeRabbit with Linear
description: Integrate CodeRabbit with Linear.
sidebar_label: Setup
image: "/preview_meta.jpg"
---

<head>
<meta charSet="utf-8" />
<meta name="title" content="Connect CodeRabbit with Linear" />
<meta name="description" content="Integrate CodeRabbit with Linear" />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://coderabbit.ai/" />
<meta property="og:title" content="Connect CodeRabbit with Linear" />
<meta property="og:description" content="CodeRabbit: AI-powered Code Reviews" />
<meta property="og:image" content="/preview_meta.jpg" />

<meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Connect CodeRabbit with Linear" />
<meta name="twitter:description" content="CodeRabbit: AI-powered Code Reviews" />
</head>

Linear is the project planning tool for teams dedicated to quality. Like Jira, it facilitates task organization, progress tracking, and seamless collaboration. Users can create issues to outline tasks, bugs, or features, assign them, set deadlines, and monitor their progress across the project lifecycle.

:::note
Visit [Linear](https://linear.app/) if you're unfamiliar and would like to learn more.
:::

As your team works on resolving Linear issues, CodeRabbit automatically assesses the changes made in the associated pull requests, helping you meet project objectives and maintain code quality standards.

### Connect CodeRabbit with Linear

![Integrations Page](../images/cr-integrations-light.png#gh-light-mode-only)
![Integrations Page](../images/cr-integrations-dark.png#gh-dark-mode-only)

On this page, toggle the button for the Linear Integration.

![Integrations Page](../images/Linear/setup/linear-login-light.png#gh-light-mode-only)
![Integrations Page](../images/Linear/setup/linear-login.png#gh-dark-mode-only)

Once toggling, you will be redirected over to Linear's authorization page. If you are not signed in, please sign in with your Linear credentials.

![Integrations Page](../images/Linear/setup/linear-auth-light.png#gh-light-mode-only)
![Integrations Page](../images/Linear/setup/linear-auth.png#gh-dark-mode-only)

Lastly, Linear will ask you to authorize CodeRabbit for read access.

![Integrations Page](../images/Linear/setup/linear-connected-dark.png#gh-dark-mode-only)
![Integrations Page](../images/Linear/setup/linear-connected-light.png#gh-light-mode-only)

**That's It!** Linear will redirect you back to the CodeRabbit integrations page where you should see the toggle enabled for the Linear Integration.

### Disconnect CodeRabbit with Linear

Disconnecting the integration is seamless. Just toggle the button off for the Linear Integration and CodeRabbit will automatically disconnect.

---

Next we will look at how we can link Linear Issues with pull requests and see how CodeRabbit assess them within the Pull Request.
Binary file added docs/integrations/images/Jira/jira-auth-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 16 additions & 12 deletions docs/integrations/self-hosted-gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ To initiate the integration, we require specific information. This is essential
for the initial setup of CodeRabbit within your domain. Once this setup is
complete, you can log in directly using the OAuth2 flow.

### **Step 1: Getting Started**
### 1. Getting Started

**Visit CodeRabbit:** Land on to our [Login](https://coderabbit.ai/login) page
and select Self-Hosted GitLab

![login-page](./images/login-page.png)
![login-page](./images/SelfHosted/login-page.png)

### Step 2: Enter your Self Managed GitLab URL
### 2. Enter your Self Managed GitLab URL
Copy link
Contributor

@coderabbitai coderabbitai bot Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instructions for entering the Self Managed GitLab URL are clear. However, the term "Self Managed" should be hyphenated ("Self-Managed") for consistency with the rest of the documentation.

- Enter your Self Managed GitLab URL
+ Enter your Self-Managed GitLab URL

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
### 2. Enter your Self Managed GitLab URL
### 2. Enter your Self-Managed GitLab URL

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reviews, throughly check and recommend any improvements for grammatical or syntactical errors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karan925, thank you for your feedback. I'll ensure to thoroughly check and recommend improvements for grammatical or syntactical errors in future reviews. For the current content, I've noted your suggestion for hyphenating "Self-Managed" for consistency, which is a great catch. If there are specific sections you're concerned about or would like me to review again, please let me know!


New Learnings Added
User: karan925
PR: coderabbitai/coderabbit-docs#26
File: docs/integrations/self-hosted-gitlab.md:21-21
Timestamp: 2024-03-20T20:01:22.577Z
Learning: For future reviews, thoroughly check and recommend any improvements for grammatical or syntactical errors.

Note: Learnings are effective only in the context of specific code segments. To apply general coding guidelines, please configure path-based instructions.


On this page, enter the URL of your self managed GitLab instance and click
submit. Once, you submit, we check our database for a record of your
organization.

![Untitled](./images/enter-url.png)
![Untitled](./images/SelfHosted/enter-url.png)

### **Step 3: Enter Admin Personal Access Token (First time only)**
### 3. Enter Admin Personal Access Token (First time only)

If this is the first time you are signing up with your instance, we need an
admin access token for setting up the CodeRabbit.
Expand All @@ -50,19 +50,23 @@ the token, please follow the process outlined below:
9. Select Create personal access token.
10. Please note down this token as this will be visible one time only

![Untitled](./images/admin-access-token.png)
![Untitled](./images/SelfHosted/admin-access-token.png)

### **Step 4: Paste the token and click submit**
### 4. Paste the Token and Submit

- Submit the access token.
- We will handle the setup process for you.
- On subsequent visits, your setup will be automatically detected, allowing for
direct login. ![Untitled](./images/self-hosted-page.png)

### **Step 5: Whitelist CodeRabbit IP address**
![Untitled](./images/SelfHosted/self-hosted-page.png)
:::note
For future visits, your setup will be automatically recognized, enabling seamless login.
:::

### 5. Whitelist CodeRabbit IP Address

Use this CodeRabbit IP if your instance requires IP whitelisting
`35.222.179.152/32`

- Furthermore, please refer to our Get Started Guide to make the most of
CodeRabbit [here](../get-started/add-repo.md).
:::tip
Refer to our [Get Started Guide](../get-started/add-repo.md) to make the most of CodeRabbit.
:::
14 changes: 13 additions & 1 deletion sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ const sidebars: SidebarsConfig = {
{
type: "category",
label: "Integrations",
items: ["integrations/self-hosted-gitlab"],
items: [
{
type: "category",
label: "Jira",
items: ["integrations/Jira/setup", "integrations/Jira/link"],
},
{
type: "category",
label: "Linear",
items: ["integrations/Linear/setup", "integrations/Linear/link"],
},
"integrations/self-hosted-gitlab",
],
},
"faq/faq",
],
Expand Down