Skip to content

Commit 7cf9ccc

Browse files
authored
Merge pull request #601 from linear-b/AI-touchups
added chip icon and wand, moved main askAI page
2 parents 708de8c + 1fe1a1d commit 7cf9ccc

File tree

22 files changed

+722
-13
lines changed

22 files changed

+722
-13
lines changed

.cm/ask-ai.cm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ automations:
1818
comment: |
1919
# 📜 PR Summary 📜
2020
{{ source | askAI("
21-
Summarize in simple terms the changes in this PR using bullet points.", env.OPEN_AI_TOKEN) | encode }}
21+
Summarize in simple terms the changes in this PR using bullet points.", env.OPEN_AI_TOKEN) }}
2222
2323
cr_code_changes:
2424
if:
@@ -33,7 +33,7 @@ automations:
3333
- Finding bugs, security risks, and performance issues
3434
- Verify best practices and style guide violations
3535
- Specific improvement suggestions based on the changes",
36-
env.OPEN_AI_TOKEN) | encode }}
36+
env.OPEN_AI_TOKEN) }}
3737
3838
3939

docs/automations/integrations/askAI/add-tests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Automation - Ask AI to Suggest Tests
33
description: Use gitStream's integration with AI services to suggests additional tests
44
category: [quality, genai, copilot, tests, efficiency]
5+
starter_kits: [genai]
56
---
67
# Ask AI to Suggest Tests
78

Lines changed: 91 additions & 0 deletions
Loading
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Automation - Ask AI to Summarize the Changes in a PR
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+
---
6+
# Ask AI to Summarize the Changes in a PR
7+
8+
<!-- --8<-- [start:example]-->
9+
Use AI to generate a concise bullet-point summary of the changes in the pull request.
10+
11+
!!! info "Configuration Description"
12+
13+
Conditions (all must be true):
14+
15+
* A PR is created or new code has been committed to the PR.
16+
* The PR has a label "askai summarize"
17+
18+
Automation Actions:
19+
20+
* Add a comment with a summary of the PR
21+
22+
!!! example "Configuration Example"
23+
```yaml+jinja
24+
--8<-- "docs/downloads/automation-library/integrations/askAI/askAI_summarize.cm"
25+
```
26+
<div class="result" markdown>
27+
<span>
28+
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/askAI/askAI_summarize.cm){ .md-button }
29+
</span>
30+
</div>
31+
<!-- --8<-- [end:example]-->
32+
33+
## Additional Resources
34+
35+
--8<-- "docs/snippets/general.md"
36+
37+
**Related Automations**:
38+
39+
--8<-- "docs/snippets/context-automation.md"
40+
41+
--8<-- "docs/snippets/automation-footer.md"

docs/automations/integrations/askAI/code-review/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Automation - Ask AI for a Code Review
33
description: Use gitStream's integration with AI services to perform a comprehensive code review to your code
44
category: [quickstart, quality, genai, copilot, tests, efficiency]
5+
starter_kits: [genai]
56
---
67
# Ask AI for a Code Review
78

Lines changed: 91 additions & 0 deletions
Loading
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Automation - Ask AI to Summarize the Changes in a PR
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+
---
6+
# Ask AI to Summarize the Changes in a PR
7+
8+
<!-- --8<-- [start:example]-->
9+
Use AI to generate a documentation for the newly added features and changes based on the code diff.
10+
11+
!!! info "Configuration Description"
12+
13+
Conditions (all must be true):
14+
15+
* A PR is created or new code has been committed to the PR.
16+
* The PR has a label "askai document"
17+
18+
Automation Actions:
19+
20+
* Add a comment with a summary of the PR
21+
22+
!!! example "Configuration Example"
23+
```yaml+jinja
24+
--8<-- "docs/downloads/automation-library/integrations/askAI/askAI_document.cm"
25+
```
26+
<div class="result" markdown>
27+
<span>
28+
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/askAI/askAI_document.cm){ .md-button }
29+
</span>
30+
</div>
31+
<!-- --8<-- [end:example]-->
32+
33+
## Additional Resources
34+
35+
--8<-- "docs/snippets/general.md"
36+
37+
**Related Automations**:
38+
39+
--8<-- "docs/snippets/context-automation.md"
40+
41+
--8<-- "docs/snippets/automation-footer.md"

0 commit comments

Comments
 (0)