Skip to content

Commit 5fabf76

Browse files
committed
update README
1 parent 7643d68 commit 5fabf76

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ These keys are shared between the `conditional` and `generate` label strategy. (
9494

9595
#### `label.script` (required)
9696

97+
> [!TIP]
98+
> See the [SCM engine expr-lang documentation](#expr-lang-information) for more information about [functions](#functions) and [attributes](#attributes) available.
99+
97100
The `script` field is an [expr-lang](https://expr-lang.org/) expression, a safe, fast, and intuitive expression evaluator.
98101

99102
Depending on the `label.strategy` used, the behavior of the script changes, read more about this below.
@@ -304,6 +307,16 @@ They can be accessed exactly as shown in this list.
304307

305308
### Functions
306309

310+
### merge_request.modified_files(str...)
311+
312+
Returns wether any of the provided files patterns have been modified in the Merge Request.
313+
314+
The file patterns use the [`.gitignore` format](https://git-scm.com/docs/gitignore#_pattern_format).
315+
316+
```expr
317+
merge_request.modified_files("*.go", "docs/")
318+
```
319+
307320
#### duration(str)
308321

309322
Returns the [`time.Duration`](https://pkg.go.dev/time#Duration) value of the given string str.

0 commit comments

Comments
 (0)