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
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Our research shows that code reviews are [the most consistent bottleneck in the
61
61
62
62
## 🚀 Get Started
63
63
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).
65
65
66
66
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.
67
67
@@ -92,4 +92,4 @@ gitStream is a free product from the team at [LinearB](https://linearb.io/?utm_s
Copy file name to clipboardExpand all lines: docs/automation-actions.md
+23-22Lines changed: 23 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -12,31 +12,32 @@ Actions are the end results of the automation described in your `.cm` file.
12
12
13
13
- :fontawesome-brands-github: Supported on GitHub
14
14
- :fontawesome-brands-gitlab: Supported on GitLab
15
+
- :fontawesome-brands-bitbucket: Supported on Bitbucket
15
16
- :fontawesome-solid-flask: Open beta - Feature is under development and currently available for all
16
17
17
18
## Overview
18
19
19
20
[`send-http-request`](#send-http-request) is executed immediately after the evaluation of the condition.
20
21
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.
This action, once triggered, requests changes on the PR. As long as request change is set, gitStream will block the PR merge.
300
301
@@ -401,7 +402,7 @@ has:
401
402
* We encourage you to use this action with [custom triggers](./execution-model.md#explicit-triggers)
402
403
* 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.
The action, once triggered, sends a webhook with a message content to a Slack app.
437
438
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:
485
486
486
487
To allow this action to block merge, you should enable branch protection, and gitStream has to be set as required check in GitHub.
This action, when triggered, updates the PR description with new content.
490
491
491
492
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.
This action, when triggered, updates the PR title with new content.
525
526
526
527
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.
description: Install gitStream to your Bitbucket workspace.
4
+
---
5
+
# How to Setup gitStream with Bitbucket
6
+
7
+
!!! info "gitStream for Bitbucket Cloud is currently in **beta**"
8
+
9
+
If you're interested in automating your Bitbucket pull requests and enhancing your development workflow, please [contact our support team](mailto:support@linearb.io) to request access and receive setup instructions.
10
+
We’d love to hear your feedback and collaborate to improve this integration during the beta phase. Thank you for your interest!
11
+
12
+
!!! info "Prerequisites"
13
+
14
+
1. Bitbucket Cloud account
15
+
2. Bitbucket Pipelines enabled
16
+
3. <a href="https://app.linearb.io/login" target="_blank">Login</a>, or <a href="https://app.linearb.io/sign-up" target="_blank">create a free account</a> on the LinearB app, and follow the steps to connect gitStream using a Bitbucket integration.
17
+
18
+
Bitbucket Installation Overview
19
+
20
+
1. Designate a gitStream user account.
21
+
2. Create a CM configuration file.
22
+
3. Create a Bitbucket pipeline.
23
+
4. Install the gitStream service.
24
+
25
+
## Designate a gitStream User Account
26
+
27
+
gitStream automation rules are executed on behalf of the user account configured when you install the gitStream service. This account must have the necessary permissions to the relevant repositories.
28
+
29
+
We recommend creating a dedicated service account to control access to individual repositories easily. You can also use your professional or personal Bitbucket account for this, which would result in all automations being executed under that account.
30
+
31
+
!!! tip "Use this account when you integrate gitStream"
32
+
Make sure to use this account when authorizing Bitbucket in LinearB.
33
+
34
+
## Create a CM Configuration File
35
+
36
+
Create a `gitstream.cm` rules file in the root directory of your repository's default branch (usually `master` or `main`). This file will contain a YAML configuration that determines the workflows that run on your repositories. You can name the CM file anything you want as long as it ends in `.cm`.
37
+
38
+
!!! info "Configuration files go in the repo's root directory."
39
+
Your `.cm` files should be placed in the repository's root directory.
40
+
41
+
!!! example "Example Configuration"
42
+
```yaml
43
+
--8<-- "docs/downloads/gitstream-bb.cm"
44
+
```
45
+
46
+
## Create a Bitbucket Pipeline
47
+
48
+
Once your gitStream configuration file is set up, you need a Bitbucket Pipelines configuration file to trigger gitStream automations. Create a `bitbucket-pipelines.yml` file in your repository's default branch (usually `master` or `main`) and add the following configuration:
49
+
50
+
```yaml
51
+
--8<-- "docs/downloads/bitbucket-pipelines.yml"
52
+
```
53
+
54
+
!!! warning "Note"
55
+
The `add-label` action is not supported in Bitbucket as Bitbucket does not have a native labeling feature.
56
+
57
+
## Install the gitStream Service
58
+
59
+
To complete the setup, install the gitStream service in your Bitbucket workspace. Follow the instructions provided in the LinearB app to connect your Bitbucket account and repositories to gitStream.
60
+
61
+
## Next Step
62
+
If you successfully complete these instructions, gitStream will now automate your code review workflows in Bitbucket.
63
+
64
+
!!! tip "How gitStream Works"
65
+
Read our guide, [How gitStream Works](/how-it-works/), for a deeper understanding of gitStream's capabilities and how to leverage them fully.
Copy file name to clipboardExpand all lines: docs/faq.md
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -16,42 +16,38 @@ Choose which repositories are permitted to use GitHub Actions.
16
16
17
17
## Does gitStream services have access to my code?
18
18
19
-
Like any other CI/CD automation, the source code is being scanned in the repo and is not shared with any external services. Only metadata that relates and affects the workflow is shared to allow rulebased automation on the repo.
19
+
Like any other CI/CD automation, the source code is being scanned in the repo and is not shared with any external services. Only metadata related to and affecting the workflow is shared to allow rule-based automation on the repo.
20
20
21
21
## Why does gitStream require permission to write code?
22
-
In order to support automations that either Approve or Merge PRs, GitHub API requires code write scope.
22
+
To support automations that either Approve or Merge PRs, the git providers require code write scope.
23
23
24
24
## What repos are supported?
25
25
26
-
Any repo in GitHubis supported. More Git providers are planned soon.
26
+
gitStream supports repositories in GitHub, GitLab, and Bitbucket. Note that the `add-label` action is not supported in Bitbucket as it does not have a native labeling feature.
27
27
28
28
## Can I use gitStream with Merge Queues?
29
29
30
30
Yes. When a merge queue is used, and gitStream is set as a required check, gitStream automation will be invoked with the merge event. The automation will set gitStream to a `Completed` status and `Skipped` conclusion to allow the PR merge.
31
31

32
32
33
-
## Custom filter functions
34
-
35
-
Coming soon.
36
-
37
33
## Is there .cm syntax highlighting?
38
34
39
-
The `.cm` file use YAML with JINJA2, in order for your favorite editor to choose automatically the right syntax, you can use modelines.
35
+
The `.cm` file uses YAML with JINJA2. For your favorite editor to automatically choose the right syntax, you can use modelines.
40
36
41
37
Add the following line to the top of the `.cm` file (the default has it already):
42
38
43
39
```
44
40
# -*- mode: yaml -*-
45
41
```
46
42
47
-
Get a plug-in that enable modelines, popular ones are:
43
+
Get a plug-in that enables modelines. Popular ones are:
48
44
49
45
- VS Code: [Modelines](https://marketplace.visualstudio.com/items?itemName=chrislajoie.vscode-modelines)
50
46
- Sublime Text: [CM syntax for ST4](https://packagecontrol.io/packages/Continuous%20Merge) or [Emacs-like Sublime Modeline](https://github.com/kvs/STEmacsModelines)
51
47
- Vim [Modeline magic](https://vim.fandom.com/wiki/Modeline_magic)
52
48
53
-
## I have an issue I can't seem to solve, what should I do?
49
+
## I have an issue I can't seem to solve. What should I do?
54
50
55
-
Go to our issues page and check if there are any similar issues already reported. If not, create a new issue with all the details so we can take a look.
51
+
Go to our issues page and check if any similar issues are already reported. If not, create a new issue with all the details so we can take a look.
56
52
57
53
Found a bug? Create a new item in the [project's issues](https://github.com/linear-b/gitstream/issues)
0 commit comments