Skip to content

Commit f2411ff

Browse files
authored
Merge branch 'main' into fine/add-readfile-filter
2 parents 0fe3074 + c90a332 commit f2411ff

35 files changed

+960
-72
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Our research shows that code reviews are [the most consistent bottleneck in the
6161

6262
## 🚀 Get Started
6363

64-
gitStream is a GitHub / GitLab app that processes automations defined in Continuous Merge (CM) automation files contained in your git repos. You can test gitStream automations on your own PRs via the [gitStream playground](https://app.gitstream.cm/playground).
64+
gitStream is a GitHub / GitLab / Bitbucket app that processes automations defined in Continuous Merge (CM) automation files contained in your git repos. You can test gitStream automations on your own PRs via the [gitStream playground](https://app.gitstream.cm/playground).
6565

6666
If you're ready to install gitStream, or want to explore its automation capabilities, [head over to the docs](https://docs.gitstream.cm). You can have your first automation up and running in as little as 2 minutes.
6767

@@ -92,4 +92,4 @@ gitStream is a free product from the team at [LinearB](https://linearb.io/?utm_s
9292
<img alt="Novu Logo" src="https://raw.githubusercontent.com/linear-b/gitstream/a5d4aca7b923e5cd70c813df06dc70de97382d8c/docs/downloads/images/LinearB-logo-dark.png" width="280"/>
9393
</picture>
9494
</a>
95-
</div>
95+
</div>

docs/automation-actions.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,32 @@ Actions are the end results of the automation described in your `.cm` file.
1212

1313
- :fontawesome-brands-github: Supported on GitHub
1414
- :fontawesome-brands-gitlab: Supported on GitLab
15+
- :fontawesome-brands-bitbucket: Supported on Bitbucket
1516
- :fontawesome-solid-flask: Open beta - Feature is under development and currently available for all
1617

1718
## Overview
1819

1920
[`send-http-request`](#send-http-request) is executed immediately after the evaluation of the condition.
2021
For all other actions, gitStream executes the actions in the order they are listed per automation. If an action result fails, the following actions will not be executed.
2122

22-
- [`add-comment`](#add-comment) :fontawesome-brands-github: :fontawesome-brands-gitlab:
23+
- [`add-comment`](#add-comment) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
2324
- [`add-github-check`](#add-github-check) :fontawesome-brands-github:
2425
- [`add-label`](#add-label) :fontawesome-brands-github: :fontawesome-brands-gitlab:
2526
- [`add-labels`](#add-labels) :fontawesome-brands-github: :fontawesome-brands-gitlab:
26-
- [`add-reviewers`](#add-reviewers) :fontawesome-brands-github: :fontawesome-brands-gitlab:
27+
- [`add-reviewers`](#add-reviewers) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
2728
- [`add-thread`](#add-thread) :fontawesome-brands-gitlab:
28-
- [`approve`](#approve) :fontawesome-brands-github: :fontawesome-brands-gitlab:
29-
- [`close`](#close) :fontawesome-brands-github: :fontawesome-brands-gitlab:
30-
- [`explain-code-experts`](#explain-code-experts) :fontawesome-brands-github: :fontawesome-brands-gitlab:
31-
- [`merge`](#merge) :fontawesome-brands-github: :fontawesome-brands-gitlab:
32-
- [`request-changes`](#request-changes) :fontawesome-brands-github: :fontawesome-brands-gitlab:
29+
- [`approve`](#approve) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
30+
- [`close`](#close) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
31+
- [`explain-code-experts`](#explain-code-experts) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
32+
- [`merge`](#merge) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
33+
- [`request-changes`](#request-changes) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
3334
- [`require-reviewers`](#require-reviewers) :fontawesome-brands-github:
3435
- [`run-github-workflow`](#run-github-workflow) :fontawesome-brands-github:
35-
- [`send-http-request`](#send-http-request) :fontawesome-brands-github:
36-
- [`send-slack-message`](#send-slack-message) :fontawesome-brands-github:
36+
- [`send-http-request`](#send-http-request) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
37+
- [`send-slack-message`](#send-slack-message) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
3738
- [`set-required-approvals`](#set-required-approvals) :fontawesome-brands-github:
38-
- [`update-description`](#update-description) :fontawesome-brands-github:
39-
- [`update-title`](#update-title) :fontawesome-brands-github:
39+
- [`update-description`](#update-description) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
40+
- [`update-title`](#update-title) :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
4041

4142
!!! note
4243

@@ -60,7 +61,7 @@ automations:
6061

6162
## Reference
6263

63-
#### `add-comment` :fontawesome-brands-github: :fontawesome-brands-gitlab:
64+
#### `add-comment` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
6465

6566
This action, once triggered, adds a comment to the PR.
6667

@@ -156,7 +157,7 @@ This is a managed action, when a PR updates existing labels that were added by g
156157
</div>
157158

158159

159-
#### `add-reviewers` :fontawesome-brands-github: :fontawesome-brands-gitlab:
160+
#### `add-reviewers` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
160161

161162
This action, once triggered, sets a specific reviewer.
162163

@@ -211,7 +212,7 @@ automations:
211212
comment: "Please make sure this change request is documented before merging"
212213
```
213214

214-
#### `explain-code-experts` :fontawesome-brands-github: :fontawesome-brands-gitlab:
215+
#### `explain-code-experts` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
215216

216217
This action, shall add a comment with codeExperts suggestion. If the comment already exists, the comment shall be edited.
217218

@@ -236,7 +237,7 @@ automations:
236237
gt: 10
237238
```
238239

239-
#### `approve` :fontawesome-brands-github: :fontawesome-brands-gitlab:
240+
#### `approve` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
240241

241242
This action, once triggered, approves the PR for merge.
242243

@@ -251,7 +252,7 @@ automations:
251252
- action: approve@v1
252253
```
253254

254-
#### `close` :fontawesome-brands-github: :fontawesome-brands-gitlab:
255+
#### `close` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
255256

256257
This action, once triggered, close the PR without merging.
257258

@@ -269,7 +270,7 @@ automations:
269270
- action: close@v1
270271
```
271272

272-
#### `merge` :fontawesome-brands-github: :fontawesome-brands-gitlab:
273+
#### `merge` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
273274

274275
Once triggered, merge the PR if possible. It can be set to wait for all checks to pass or only required ones.
275276

@@ -294,7 +295,7 @@ automations:
294295
rebase_on_merge: true
295296
```
296297

297-
#### `request-changes` :fontawesome-brands-github: :fontawesome-brands-gitlab:
298+
#### `request-changes` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
298299

299300
This action, once triggered, requests changes on the PR. As long as request change is set, gitStream will block the PR merge.
300301

@@ -401,7 +402,7 @@ has:
401402
* We encourage you to use this action with [custom triggers](./execution-model.md#explicit-triggers)
402403
* To manually test the webhook dispatch, please [run the workflow](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow#running-a-workflow){:target="_blank"} before using it with gitStream.
403404

404-
#### `send-http-request` :fontawesome-brands-github:
405+
#### `send-http-request` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
405406

406407
The action, once triggered, sends an HTTP request to the specified URL
407408
<div class="filter-details" markdown=1>
@@ -431,7 +432,7 @@ automations:
431432
body: '{"text": "Hello, world!"}'
432433
```
433434

434-
#### `send-slack-message` :fontawesome-brands-github:
435+
#### `send-slack-message` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
435436

436437
The action, once triggered, sends a webhook with a message content to a Slack app.
437438
To use this action, [create a Slack app](https://api.slack.com/messaging/webhooks#getting_started) with Incoming Webhooks enabled. gitStream uses the webhook URL to send the message.
@@ -485,7 +486,7 @@ automations:
485486

486487
To allow this action to block merge, you should enable branch protection, and gitStream has to be set as required check in GitHub.
487488

488-
#### `update-description` :fontawesome-brands-github:
489+
#### `update-description` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
489490
This action, when triggered, updates the PR description with new content.
490491

491492
This is a managed action. When a PR updates, the existing comments that were added by gitStream are re-evaluated, and those that are not applicable are removed.
@@ -520,7 +521,7 @@ jira_ticket_from_title: {{ pr.title | capture(regex=r/\b[A-Za-z]+-\d+\b/) }}
520521
```
521522

522523

523-
#### `update-title` :fontawesome-brands-github:
524+
#### `update-title` :fontawesome-brands-github: :fontawesome-brands-gitlab: :fontawesome-brands-bitbucket:
524525
This action, when triggered, updates the PR title with new content.
525526

526527
This is a managed action. When a PR updates, the existing comments that were added by gitStream are re-evaluated, and those that are not applicable are removed.

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

0 commit comments

Comments
 (0)