Skip to content

Commit 6c64948

Browse files
authored
Add example of combining org and repo code review guidelines (#834)
1 parent 9e25646 commit 6c64948

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/automation-actions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,21 @@ is:
378378
bot_branch: {{ branch.name | match(list=['renovate/']) | some }}
379379
```
380380

381+
This example shows how to combine organization-level and repository-level guidelines.
382+
383+
```yaml+jinja title="example - combined org + repo guidelines"
384+
automations:
385+
linearb_ai_review:
386+
if:
387+
- true
388+
run:
389+
- action: code-review@v1
390+
args:
391+
guidelines: |
392+
Repo {{ "./repo_guidelines.md" | readFile() }}
393+
Org: {{ "../cm/org_guidelines.md" | readFile() }}
394+
```
395+
381396
!!! tip "Iterative Guidelines Refinement with Playground"
382397

383398
To achieve the exact review behavior you want, use this iterative workflow:

0 commit comments

Comments
 (0)