Skip to content

Commit 3dba86a

Browse files
authored
Merge pull request #639 from linear-b/Introduce-LinearB-AI
added describe pr filter
2 parents 4d57578 + ee773fe commit 3dba86a

File tree

6 files changed

+200
-23
lines changed

6 files changed

+200
-23
lines changed
Loading
Lines changed: 91 additions & 0 deletions
Loading
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Automation - Add PR Description Using LinearB's AI
3+
description: Use gitStream's integration with AI services to generate a summary of the changes in the PR.
4+
category: [quality, genai, copilot, tests, efficiency]
5+
starter_kits: [genai]
6+
---
7+
# Add PR Description Using LinearB's AI
8+
9+
<!-- --8<-- [start:example]-->
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+
12+
![summarized-pr](/automations/integrations/askAI/summarize-pr/LinearB-AI-describe-pr.png)
13+
14+
!!! info "Configuration Description"
15+
16+
Conditions (all must be true):
17+
18+
* A PR is created or new code has been committed to the PR.
19+
20+
Automation Actions:
21+
22+
* Append the AI-generated description to the PR description.
23+
24+
!!! example "Configuration Example"
25+
```yaml+jinja
26+
--8<-- "docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm"
27+
```
28+
<div class="result" markdown>
29+
<span>
30+
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/LinearBAI/describe-pr.cm){ .md-button }
31+
</span>
32+
</div>
33+
<!-- --8<-- [end:example]-->
34+
35+
## Additional Resources
36+
37+
--8<-- "docs/snippets/general.md"
38+
39+
**Related Automations**:
40+
41+
--8<-- "docs/snippets/context-automation.md"
42+
43+
--8<-- "docs/snippets/automation-footer.md"

docs/automations/integrations/askAI/summarize-pr/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Automation - Ask AI to Summarize the Changes in a PR
33
description: Use gitStream's integration with AI services to generate a summary of the changes in the PR.
44
category: [quality, genai, copilot, tests, efficiency]
5-
starter_kits: [genai]
65
---
76
# Ask AI to Summarize the Changes in a PR
87

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
manifest:
2+
version: 1.0
3+
4+
automations:
5+
add_pr_description:
6+
on:
7+
- pr_created
8+
- commit
9+
if:
10+
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
11+
run:
12+
- action: update-description@v1
13+
args:
14+
concat_mode: append
15+
description: {{ source | AI_DescribePR }}

0 commit comments

Comments
 (0)