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: docs/automations/automation-library.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,5 +69,5 @@ These examples provide useful components to use in other automations. These aren
69
69
70
70
## Contribute Your Idea
71
71
72
-
!!! tip "Do you Have a great idea for an automation that should be included in this library?"
72
+
!!! tip "Do you have a great idea for an automation that should be included in this library?"
73
73
[Submit your configuration](https://github.com/linear-b/gitStream/issues/new?assignees=&labels=new-example&template=new_automation_example.md&title=New+Example%3A+) on GitHub. We'll recognize your contribution publicly (if you want) and might even send you some special swag for your contribution.
Copy file name to clipboardExpand all lines: docs/custom-github-app.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ You can now set up gitStream for a single repo, your GitHub organization or acro
184
184
```
185
185
186
186
**GitHub Actions**
187
-
Once your gitStream configuration file is setup, you need a Github Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your repository's default branch (usually `master` or `main`) and add the following configuration:
187
+
Once your gitStream configuration file is setup, you need a GitHub Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your repository's default branch (usually `master` or `main`) and add the following configuration:
188
188
189
189
```yaml+jinja
190
190
--8<-- "docs/downloads/gitstream.yml"
@@ -223,7 +223,7 @@ You can now set up gitStream for a single repo, your GitHub organization or acro
223
223
224
224
**GitHub Actions**
225
225
226
-
Once your gitStream configuration file is set up, you will need to create a Github Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your `cm` repository's default branch (usually `master` or `main`) and add the following configuration:
226
+
Once your gitStream configuration file is set up, you will need to create a GitHub Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your `cm` repository's default branch (usually `master` or `main`) and add the following configuration:
227
227
228
228
```yaml+jinja
229
229
--8<-- "docs/downloads/gitstream.yml"
@@ -259,7 +259,7 @@ You can now set up gitStream for a single repo, your GitHub organization or acro
259
259
260
260
**GitHub Actions**
261
261
262
-
Once your gitStream configuration file is set up, you will need to create a Github Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your `cm` repository's default branch (usually `master` or `main`) and add the following configuration:
262
+
Once your gitStream configuration file is set up, you will need to create a GitHub Actions configuration file to trigger gitStream automations. Create a `.github/workflows/gitstream.yml` file in your `cm` repository's default branch (usually `master` or `main`) and add the following configuration:
Copy file name to clipboardExpand all lines: docs/examples.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ description: Build your first gitStream automation in as little as two minutes.
4
4
---
5
5
# gitStream Quickstart
6
6
7
-
This page contains common gitStream configurations that are a great place to begin adopting a continuous merge mindset with gitStream. If you haven't already, you'll need to install gitStream to your [GitHub](github-installation.md) or [GitLab](gitlab-installation.md) organization before you can use these automations
7
+
This page contains common gitStream configurations that are a great place to begin adopting a continuous merge mindset with gitStream. If you haven't already, you'll need to install gitStream to your [GitHub](github-installation.md) or [GitLab](gitlab-installation.md) organization before you can use these automations.
8
8
9
9
!!! tip "Build your first gitStream automation in as little as two minutes."
10
-
These example are complete gitStream configuration files that you can download directly via the buttons below the examples and upload to the `.cm` directory of your repo. Alternatively, you can copy and paste the individual automations, but make sure you include all required declarations and any related custom expressions from the configuration to ensure everything works properly.
10
+
These examples are complete gitStream configuration files that you can download directly via the buttons below the examples and upload to the `.cm` directory of your repo. Alternatively, you can copy and paste the individual automations, but make sure you include all required declarations and any related custom expressions from the configuration to ensure everything works properly.
11
11
12
12
## Improve PR Context with Label Automation
13
13
14
-
This CM automation contains a collection of workflows to automatically apply labels that to provide deeper context to code reviewers to help them more quickly triage and address incoming requests for reviews. Ideally, you should implement these automations across your entire git organization to maximize developer usage.
14
+
This CM automation contains a collection of workflows to automatically apply labels to provide deeper context to code reviewers to help them more quickly triage and address incoming requests for reviews. Ideally, you should implement these automations across your entire git organization to maximize developer usage.
15
15
16
16
The following example includes workflow automations to do the following:
Copy file name to clipboardExpand all lines: docs/execution-model.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ gitStream automations are triggered by events related to pull requests (PRs). Yo
31
31
32
32
By default, gitStream evaluates any new commit pushed to the PR, triggering automation evaluation.
33
33
34
-
Additionally, if any of the automation rules reference the following [`pr`](context-variables.md#pr) context variables: `pr.comments`, `pr.title`, `pr.description`, or `pr.labels`, gitStream shall trigger and will initiate automation rules evaluation where there are changes to the PR comments, title, description, or labels respectfully.
34
+
Additionally, if any of the automation rules reference the following [`pr`](context-variables.md#pr) context variables: `pr.comments`, `pr.title`, `pr.description`, or `pr.labels`, gitStream shall trigger and will initiate automation rules evaluation where there are changes to the PR comments, title, description, or labels respectively.
35
35
36
36
This allows for greater flexibility in the automation process, ensuring that the relevant automation rules are evaluated and triggered when necessary. The execution model ensures the automation process is streamlined, efficient, and effective.
37
37
@@ -317,7 +317,7 @@ automations:
317
317
318
318
#### Branch regex pattern
319
319
320
-
Trigger only specific automations branch pattern A, and trigger other automation for all other branches except those that fit the pattern REGEX_PATTERN
320
+
Trigger only specific automations branch pattern A, and trigger other automation for all other branches except those that fit the pattern REGEX_PATTERN.
321
321
322
322
```yaml+jinja
323
323
# Automation in this file will trigger only for branch pattern REGEX_PATTERN
|[`capture`](#capture)<br />Find and return the first occurrence of a regex in the input string | String |`regex`| String |
25
25
|[`difference`](#difference)<br />Given two lists, keep only items that are in the 1st list but not in the 2nd. |[Objects]|`list`|[Objects]|
26
-
|[`every`](#every)<br />Checks whether all element in the list are `true`|[Bool]| - | Bool |
26
+
|[`every`](#every)<br />Checks whether all elements in the list are `true`|[Bool]| - | Bool |
27
27
|[`filter`](#filter)<br />Reduce list of items into a list of same items that match the specified term |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
28
28
|[`includes`](#match)<br />Check if substring match | String |`regex`, `term`, `list`| Bool |
29
29
|[`intersection`](#intersection)<br />Given two lists, keep only items that are in both lists. |[Objects]|`list`|[Objects]|
30
30
|[`map`](#map)<br />Maps each object in a list into their specified attribute value |[Object]|`attr`|[Object]|
31
31
|[`match`](#match)<br />Maps list of items into a list of booleans that match the specified term |[String]<br />[Object]|`regex`, `term`, `list``attr`|[Bool]|
32
-
|[`nope`](#nope)<br />Checks whether all element in the list are `false`|[Bool]| - | Bool |
32
+
|[`nope`](#nope)<br />Checks whether all elements in the list are `false`|[Bool]| - | Bool |
33
33
|[`reject`](#reject)<br />Inverse of [`filter`](#filter), the result list contains non-matching items |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
34
34
|[`some`](#some)<br />Checks whether at least one element in the list is `true`|[Bool]| - | Bool |
35
35
@@ -42,7 +42,7 @@ The following functions are supported in addition to the built-in functions prov
|[`allDocs`](#alldocs)<br />Checks the list includes only images|[`files`](./context-variables.md#files)| - | Bool |
45
+
|[`allDocs`](#alldocs)<br />Checks if the list includes only documents|[`files`](./context-variables.md#files)| - | Bool |
46
46
|[`allImages`](#allimages)<br />Checks the list includes only images |[`files`](./context-variables.md#files)| - | Bool |
47
47
|[`allTests`](#alltests)<br />Checks the list includes only tests |[`files`](./context-variables.md#files)| - | Bool |
48
48
|[`checkDependabot`](#checkdependabot)<br />Extract version bump information from Dependabot PRs description | String - PR description | - |[String]|
@@ -55,9 +55,9 @@ The following functions are supported in addition to the built-in functions prov
55
55
|[`extractJitFindings`](#extractjitfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the Jit scan |[`pr`](./context-variables.md#pr)| - | Object |
56
56
|[`extractSonarFindings`](#extractsonarfindings) :fontawesome-brands-github: <br />Get an object with a summary of the findings found by the SonarCloud scan |[`pr`](./context-variables.md#pr)| - | Object |
57
57
|[`explainRankByGitBlame`](#explainrankbygitblame)<br />Short markdown text explaining rankByGitBlame results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
58
-
|[`isFirstCommit`](#isfirstcommit)<br />Checks if its the author first commit in the repo |[`repo.contributors`](./context-variables.md#repo)| String | Bool |
58
+
|[`isFirstCommit`](#isfirstcommit)<br />Checks if it's the author's first commit in the repo |[`repo.contributors`](./context-variables.md#repo)| String | Bool |
59
59
|[`isFormattingChange`](#isformattingchange)<br />Checks that only formatting changed |[[`FileDiff`](./context-variables.md#filediff-structure)]| - | Bool |
60
-
|[`mapToEnum`](#maptoenum)<br />return the enum value matches to the input key | String | Enum object | Object |
60
+
|[`mapToEnum`](#maptoenum)<br />return the enum value that matches the input key | String | Enum object | Object |
61
61
|[`matchDiffLines`](#matchdifflines)<br />Match every line in diff |[[`FileDiff`](./context-variables.md#filediff-structure)]|`regex`, `ignoreWhiteSpaces`|[Bool]|
62
62
|[`rankByGitActivity`](#rankbygitactivity)<br />Get list of contributors based on `git-commit` activity |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
63
63
|[`rankByGitBlame`](#rankbygitblame)<br />Get list of contributors based on `git-blame` results |[`repo`](./context-variables.md#repo)|`gt`, `lt`|[String]|
@@ -123,7 +123,7 @@ Given two lists, keep only items that are in the 1st list but not in the 2nd.
123
123
124
124
#### `every`
125
125
126
-
Checks whether all element in the list are `true`. In case the list of elements is empty, it will return `false`.
126
+
Checks whether all elements in the list are `true`. In case the list of elements is empty, it will return `false`.
127
127
128
128
<divclass="filter-details"markdown=1>
129
129
@@ -623,7 +623,7 @@ For example, check that only one file type was changed:
623
623
624
624
!!! Warning ":fontawesome-brands-github: Available in GitHub only"
625
625
626
-
This filter is currently availalbe only in GitHub
626
+
This filter is currently available only in GitHub
627
627
628
628
Get an object with a summary of the findings found by [Jit](https://www.jit.io/) scan. This filter is relevant only for repos that use Jit to scan PRs
629
629
@@ -708,7 +708,7 @@ automations:
708
708
#### `extractSonarFindings`
709
709
!!! Warning ":fontawesome-brands-github: Available in GitHub only"
710
710
711
-
This filter is currently availalbe only in GitHub
711
+
This filter is currently available only in GitHub
712
712
713
713
Get an object with a summary of the findings found by the SonarCloud scan. This filter is relevant only for repos that use SonarCloud to scan PRs
714
714
@@ -842,15 +842,15 @@ Note the comment starts with `|` and a `new-line` as `explainRankByGitBlame` gen
842
842
843
843
#### `isFirstCommit`
844
844
845
-
Return `true` if it's the author first commit in the repo.
845
+
Return `true` if it's the author's first commit in the repo.
0 commit comments