You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add PR Description Using LinearB's AI :material-star-circle:
8
8
9
9
<!-- --8<-- [start:example]-->
10
10
Use the `AI_DescribePR` filter to automatically generate and append a concise, AI-generated description to a pull request. This ensures that all PRs include meaningful and helpful descriptions, improving review efficiency.
11
11
12
+
!!! note "Premium Feature"
13
+
This filter uses LinearB’s AI service and is available exclusively for paid accounts.
14
+
15
+
If you’re interested in unlocking this feature, [contact our sales team](https://linearb.io/book-a-demo) to learn more.
Copy file name to clipboardExpand all lines: docs/filter-functions.md
+29-23Lines changed: 29 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ Filters can change the look and format of the source data, or even generate new
8
8
9
9
!!! note
10
10
11
-
Items marked with :octicons-beaker-24: are under development and are not available yet.
11
+
- Items marked with :octicons-beaker-24: are under development and are not available yet.
12
+
- Items marked with :material-star-circle: are available exclusively for paid accounts. To unlock this feature, [contact our sales team](https://linearb.io/book-a-demo).
12
13
13
14
## Overview
14
15
@@ -39,27 +40,27 @@ The following functions are supported in addition to the built-in functions prov
|[`AI_DescribePR`](#ai_describepr)<br />Returns an AI-generated description of the PR based on the provided input diff| Object | - | String |
45
-
|[`allDocs`](#alldocs)<br />Checks the list includes only images |[`files`](./context-variables.md#files)| - | Bool |
46
-
|[`allImages`](#allimages)<br />Checks the list includes only images |[`files`](./context-variables.md#files)| - | Bool |
47
-
|[`allTests`](#alltests)<br />Checks the list includes only tests |[`files`](./context-variables.md#files)| - | Bool |
48
-
|[`codeExperts`](#codeexperts)<br />Get list of contributors based on expert reviewer model results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
49
-
|[`decode`](#decode)<br />Decode Base64 encoded string into an object | String (Base64 encoded) | - | Object |
50
-
|[`encode`](#encode)<br />Encode data into Base64 encoded string | Object | - | String (Base64 encoded) |
51
-
|[`estimatedReviewTime`](#estimatedreviewtime)<br />Estimated review time in minutes |[`branch`](./context-variables.md#branch)| - | Integer |
52
-
|[`extensions`](#extensions)<br />Lists all the unique file extensions |[String]| - |[String]|
53
-
|[`extractJitFindings`](#extractjitfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the Jit scan |[`pr`](./context-variables.md#pr)| - | Object |
54
-
|[`extractSonarFindings`](#extractsonarfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the SonarCloud scan |[`pr`](./context-variables.md#pr)| - | Object |
55
-
|[`explainRankByGitBlame`](#explainrankbygitblame)<br />Short markdown text explaining rankByGitBlame results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
56
-
|[`isFirstCommit`](#isfirstcommit)<br />Checks if its the author first commit in the repo |[`repo.contributors`](./context-variables.md#repo)| String | Bool |
57
-
|[`isFormattingChange`](#isformattingchange)<br />Checks that only formatting changed |[[`FileDiff`](./context-variables.md#filediff-structure)]| - | Bool |
58
-
|[`mapToEnum`](#maptoenum)<br />return the enum value matches to the input key | String | Enum object | Object |
59
-
|[`matchDiffLines`](#matchdifflines)<br />Match every line in diff |[[`FileDiff`](./context-variables.md#filediff-structure)]|`regex`, `ignoreWhiteSpaces`|[Bool]|
60
-
|[`rankByGitActivity`](#rankbygitactivity)<br />Get list of contributors based on `git-commit` activity |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
61
-
|[`rankByGitBlame`](#rankbygitblame)<br />Get list of contributors based on `git-blame` results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
62
-
|[`readFile`](#readfile)<br />Reads the contents of a file from the current branch or "cm" folder | String - The file path | String (optional) - the file type. `txt` or `json`| String |
|[`AI_DescribePR`](#ai_describepr) :material-star-circle:{ title="Premium feature" } <br />Returns an AI-generated description of the PR based on the provided input diff | Object | - | String |
46
+
|[`allDocs`](#alldocs)<br />Checks the list includes only images |[`files`](./context-variables.md#files)| - | Bool |
47
+
|[`allImages`](#allimages)<br />Checks the list includes only images |[`files`](./context-variables.md#files)| - | Bool |
48
+
|[`allTests`](#alltests)<br />Checks the list includes only tests |[`files`](./context-variables.md#files)| - | Bool |
49
+
|[`codeExperts`](#codeexperts)<br />Get list of contributors based on expert reviewer model results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
50
+
|[`decode`](#decode)<br />Decode Base64 encoded string into an object | String (Base64 encoded) | - | Object |
51
+
|[`encode`](#encode)<br />Encode data into Base64 encoded string | Object | - | String (Base64 encoded) |
52
+
|[`estimatedReviewTime`](#estimatedreviewtime)<br />Estimated review time in minutes |[`branch`](./context-variables.md#branch)| - | Integer |
53
+
|[`extensions`](#extensions)<br />Lists all the unique file extensions |[String]| - |[String]|
54
+
|[`extractJitFindings`](#extractjitfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the Jit scan |[`pr`](./context-variables.md#pr)| - | Object |
55
+
|[`extractSonarFindings`](#extractsonarfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the SonarCloud scan |[`pr`](./context-variables.md#pr)| - | Object |
56
+
|[`explainRankByGitBlame`](#explainrankbygitblame)<br />Short markdown text explaining rankByGitBlame results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
57
+
|[`isFirstCommit`](#isfirstcommit)<br />Checks if its the author first commit in the repo |[`repo.contributors`](./context-variables.md#repo)| String | Bool |
58
+
|[`isFormattingChange`](#isformattingchange)<br />Checks that only formatting changed |[[`FileDiff`](./context-variables.md#filediff-structure)]| - | Bool |
59
+
|[`mapToEnum`](#maptoenum)<br />return the enum value matches to the input key | String | Enum object | Object |
60
+
|[`matchDiffLines`](#matchdifflines)<br />Match every line in diff |[[`FileDiff`](./context-variables.md#filediff-structure)]|`regex`, `ignoreWhiteSpaces`|[Bool]|
61
+
|[`rankByGitActivity`](#rankbygitactivity)<br />Get list of contributors based on `git-commit` activity |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
62
+
|[`rankByGitBlame`](#rankbygitblame)<br />Get list of contributors based on `git-blame` results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
63
+
|[`readFile`](#readfile)<br />Reads the contents of a file from the current branch or "cm" folder | String - The file path | String (optional) - the file type. `txt` or `json`| String |
63
64
</div>
64
65
65
66
### Named arguments
@@ -315,7 +316,12 @@ Checks whether any element in the list is `true`. In case the list of elements
This filter uses LinearB’s AI service and is available exclusively for paid accounts.
323
+
324
+
If you’re interested in unlocking this feature, [contact our sales team](https://linearb.io/book-a-demo) to learn more.
319
325
320
326
Leverage LinearB's AI to assist with generating a concise and meaningful description for pull requests based on the provided context. Streamline the review process by summarizing the purpose and key changes in a PR, reducing the manual effort and cognitive load for developers and reviewers.
0 commit comments