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
This action, once triggered, reviews the code in the PR, and generates a comment with the identified issue, bugs, misconfigurations, and bad practices in the newly introduced code, with an option to approve the PR if no issues were found.
285
285
@@ -288,6 +288,7 @@ This action, once triggered, reviews the code in the PR, and generates a comment
|`concat_mode`| Optional | String | By default `replace`. The mode to add the changes description, can be `replace`, `append`, or `prepend` to the PR description |
328
+
|`guidelines`| Optional | String | Provides custom instructions to the AI model to tailor the generated description. |
329
+
|`template`| Optional | String | Specifies a template for the AI model to use and fill in when generating the PR description. |
323
330
324
331
</div>
325
332
326
333
```yaml+jinja title="example"
334
+
# -*- mode: yaml -*-
335
+
336
+
manifest:
337
+
version: 1.0
338
+
327
339
automations:
328
340
linearb_ai_description:
329
341
# trigger it only when PR is created or has new commits
@@ -338,6 +350,17 @@ automations:
338
350
- action: describe-changes@v1
339
351
args:
340
352
concat_mode: append
353
+
guidelines: {{ GUIDELINES }}
354
+
template: {{ TEMPLATE }}
355
+
356
+
GUIDELINES: |
357
+
Remove all unnecessary checkboxes.
358
+
Try to extract the Jira ticket from "{{ branch.name }}" or "{{ pr.title }}" and fill it into the template.
359
+
Jira ticket should be in format ABC-12345.
360
+
361
+
# Load the PR template content from a file in the repository
0 commit comments