File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Improve Code Comments
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
6
7
workflow_dispatch :
8
+
7
9
permissions :
8
10
contents : write
9
11
pull-requests : write
10
12
models : read
13
+
11
14
concurrency :
12
15
group : ${{ github.workflow }}-${{ github.ref }}
13
16
cancel-in-progress : true
17
+
14
18
jobs :
15
19
run-script :
16
20
runs-on : ubuntu-latest
17
21
steps :
22
+ - uses : actions/checkout@v4
23
+
18
24
# Cache the generated model requests made by GenAIScript
19
25
#
20
26
# A new cache is created for each run to ensure that the latest model requests are used,
@@ -24,17 +30,13 @@ jobs:
24
30
path : .genaiscript/cache/**
25
31
key : genaiscript-${{ github.run_id }}
26
32
restore-keys : genaiscript-
27
- - uses : actions/checkout@v4
33
+
28
34
- uses : pelikhan/action-genai-commentor@main
29
35
with :
30
36
github_token : ${{ secrets.GITHUB_TOKEN }}
31
37
update_existing : true
32
38
max_edits : 10
33
- # Show the changes made by the action
34
- - name : show changes
35
- run : |
36
- git diff --color=always || true
37
- git diff --cached --color=always || true
39
+
38
40
# Create a pull request with the changes
39
41
- name : create pull request
40
42
uses : peter-evans/create-pull-request@v7
You can’t perform that action at this time.
0 commit comments