File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ triggers:
7
7
on :
8
8
- pr_created
9
9
- commit
10
+
10
11
automations :
11
12
describe_pr :
12
13
if :
@@ -15,5 +16,25 @@ automations:
15
16
- action : add-comment@v1
16
17
args :
17
18
comment : |
18
- # ✨gitStream Describe PR ✨
19
- {{ source | askAI("based on the given context, describe in plain english the changes introduced in this PR.", env.OPEN_AI_TOKEN) | encode }}
19
+ # 📜 PR Summary 📜
20
+ {{ source | askAI("
21
+ Summarize in simple terms the changes in this PR using bullet points.", env.OPEN_AI_TOKEN) | encode }}
22
+
23
+ cr_code_changes :
24
+ if :
25
+ - {{ has.code_changes }}
26
+ run :
27
+ - action : add-comment@v1
28
+ args :
29
+ comment : |
30
+ # ✨ gitStream Review ✨
31
+ {{ source | askAI("
32
+ Review the PR code diff only for `js` and `cm` (gitStream Configuration) files.
33
+ - Identify bugs, security risks, and performance issues.
34
+ - Verify best practices and style guide violations.
35
+ - Suggest improvements.", env.OPEN_AI_TOKEN) | encode }}
36
+
37
+
38
+
39
+ has :
40
+ code_changes : {{ files | extensions | match(list=['cm', 'js']) | some }}
You can’t perform that action at this time.
0 commit comments