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
@@ -92,9 +92,9 @@ The following structures are used in the context objects:
92
92
93
93
#### `branch`
94
94
95
-
The `branch` context contains info regarding the branch changes compared to the base branch.
95
+
The `branch` context contains info regarding the branch changes compared to the base branch.
96
96
97
-
!!! note
97
+
!!! note
98
98
99
99
compared to the `source` context does not include actual source code.
100
100
@@ -134,7 +134,7 @@ automations:
134
134
135
135
!!! tip
136
136
137
-
The `files` context doesn't include deleted file, to identify both modified and deleted files use the `branch.diff.files_metadata`, for example:
137
+
The `files` context doesn't include deleted file, to identify both modified and deleted files use the `branch.diff.files_metadata`, for example:
138
138
```
139
139
{{ branch.diff.files_metadata | match(attr='file', regex=r/\.md$/) | every }}
140
140
```
@@ -144,7 +144,7 @@ automations:
144
144
The `env` context allows the user to pass data from the repo that is unavailable in the other context variables. Thus, the structure of the variable is not fixed and depends on user configuration.
145
145
146
146
To configure the `env` variable, add the `env` field to gitstream's workflow job configurations on `.github/workflows/gitstream.yml`. For more information, visit GitHub's guide for [Using secrets in GitHub Actions](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)
147
-
147
+
148
148
```yaml title="examle: add secrets to the env variable"
149
149
...
150
150
jobs:
@@ -181,7 +181,7 @@ The `files` context includes the list of changed files in the branch compared to
181
181
|---------|-----------|------------------------ |
182
182
|`files`|[String]| List of all changed files with their full path |
183
183
184
-
For example, a typical `files` context can look like this:
184
+
For example, a typical `files` context can look like this:
185
185
186
186
```json
187
187
[
@@ -233,6 +233,7 @@ The `pr` context includes metadata related to the pull request.
233
233
|`pr.number`| Integer | The PR or MR Id number |
234
234
|`pr.provider`| String | The Git cloud provider name, e.g. `GitHub`, `GitLab` etc. |
235
235
|`pr.reviewers`|[String]| The list of reviewers set for this PR |
236
+
|`pr.source`| String | The branch from which the PR originates |
236
237
|`pr.status`| String | The PR status: `open`, `closed` and `merged`|
237
238
|`pr.target`| String | The branch the PR is intended merged into |
238
239
|`pr.title`| String | The PR title |
@@ -277,7 +278,7 @@ The `repo` context includes metadata related to the repo.
277
278
278
279
#### `source`
279
280
280
-
The `source` context includes a list of `FileDiff` objects that can be used to get insights based on code changes. The changes compared to the latest main branch.
281
+
The `source` context includes a list of `FileDiff` objects that can be used to get insights based on code changes. The changes compared to the latest main branch.
0 commit comments