-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #639 from linear-b/Introduce-LinearB-AI
added describe pr filter
- Loading branch information
Showing
6 changed files
with
200 additions
and
23 deletions.
There are no files selected for viewing
Binary file added
BIN
+113 KB
docs/automations/integrations/LinearBAI/describe-pr/LinearB-AI-describe-pr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions
91
docs/automations/integrations/LinearBAI/describe-pr/LinearB-AI-describe-pr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
docs/automations/integrations/LinearBAI/describe-pr/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: Automation - Add PR Description Using LinearB's AI | ||
description: Use gitStream's integration with AI services to generate a summary of the changes in the PR. | ||
category: [quality, genai, copilot, tests, efficiency] | ||
starter_kits: [genai] | ||
--- | ||
# Add PR Description Using LinearB's AI | ||
|
||
<!-- --8<-- [start:example]--> | ||
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. | ||
|
||
![summarized-pr](/automations/integrations/askAI/summarize-pr/LinearB-AI-describe-pr.png) | ||
|
||
!!! info "Configuration Description" | ||
|
||
Conditions (all must be true): | ||
|
||
* A PR is created or new code has been committed to the PR. | ||
|
||
Automation Actions: | ||
|
||
* Append the AI-generated description to the PR description. | ||
|
||
!!! example "Configuration Example" | ||
```yaml+jinja | ||
--8<-- "docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm" | ||
``` | ||
<div class="result" markdown> | ||
<span> | ||
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/LinearBAI/describe-pr.cm){ .md-button } | ||
</span> | ||
</div> | ||
<!-- --8<-- [end:example]--> | ||
|
||
## Additional Resources | ||
|
||
--8<-- "docs/snippets/general.md" | ||
|
||
**Related Automations**: | ||
|
||
--8<-- "docs/snippets/context-automation.md" | ||
|
||
--8<-- "docs/snippets/automation-footer.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docs/downloads/automation-library/integrations/LinearBAI/describe-pr.cm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
manifest: | ||
version: 1.0 | ||
|
||
automations: | ||
add_pr_description: | ||
on: | ||
- pr_created | ||
- commit | ||
if: | ||
- {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }} | ||
run: | ||
- action: update-description@v1 | ||
args: | ||
concat_mode: append | ||
description: {{ source | AI_DescribePR }} |
Oops, something went wrong.