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 1 commit
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
Prev Previous commit
Next Next commit
Add setup documentation for Jira and Linear
  • Loading branch information
karan925 committed Mar 18, 2024
commit f15d5c128eef72d1abd1321420903bced724655b
4 changes: 2 additions & 2 deletions docs/integrations/jira.md → docs/integrations/Jira/link.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Connect CodeRabbit with Jira
title: Integrate CodeRabbit with Jira
description: Integrate CodeRabbit with Jira.
sidebar_label: Jira
sidebar_label: Link Issues with Pull Request
image: "/preview_meta.jpg"
---

Expand Down
55 changes: 55 additions & 0 deletions docs/integrations/Jira/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
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)

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-login-light.png#gh-light-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-auth-light.png#gh-light-mode-only)

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

**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 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 Jira issues with pull requests and see how CodeRabbit assess them within the Pull Request.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Connect CodeRabbit with Linear
description: Integrate CodeRabbit with Linear.
sidebar_label: Linear
title: Utilize CodeRabbit with Linear
description: Utilize CodeRabbit with Linear.
sidebar_label: Link Issues with Pull Request
image: "/preview_meta.jpg"
---

Expand Down
55 changes: 55 additions & 0 deletions docs/integrations/Linear/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
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)

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

![Integrations Page](../images/linear-login.png#gh-light-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-auth.png#gh-light-mode-only)

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

**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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/integrations/images/jira-auth-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/integrations/images/jira-login-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/integrations/images/linear-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/integrations/images/linear-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 13 additions & 9 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)

### 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)

### **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 @@ -52,17 +52,21 @@ the token, please follow the process outlined below:

![Untitled](./images/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/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.
:::
12 changes: 10 additions & 2 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ const sidebars: SidebarsConfig = {
type: "category",
label: "Integrations",
items: [
"integrations/jira",
"integrations/linear",
{
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",
],
},
Expand Down