File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Improve Code Comments
2+
23on :
34 push :
45 branches :
56 - main
67 workflow_dispatch :
8+
79permissions :
810 contents : write
911 pull-requests : write
1012 models : read
13+
1114concurrency :
1215 group : ${{ github.workflow }}-${{ github.ref }}
1316 cancel-in-progress : true
17+
1418jobs :
1519 run-script :
1620 runs-on : ubuntu-latest
1721 steps :
22+ - uses : actions/checkout@v4
23+
1824 # Cache the generated model requests made by GenAIScript
1925 #
2026 # A new cache is created for each run to ensure that the latest model requests are used,
@@ -24,17 +30,13 @@ jobs:
2430 path : .genaiscript/cache/**
2531 key : genaiscript-${{ github.run_id }}
2632 restore-keys : genaiscript-
27- - uses : actions/checkout@v4
33+
2834 - uses : pelikhan/action-genai-commentor@main
2935 with :
3036 github_token : ${{ secrets.GITHUB_TOKEN }}
3137 update_existing : true
3238 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+
3840 # Create a pull request with the changes
3941 - name : create pull request
4042 uses : peter-evans/create-pull-request@v7
You can’t perform that action at this time.
0 commit comments