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
name: Improve Code Commentson:
push:
branches:
- mainworkflow_dispatch:
permissions:
contents: writepull-requests: writemodels: readconcurrency:
group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: truejobs:
improve-comments:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4# This is the cache used by "improve comments"
- uses: actions/cache@v4with:
path: .genaiscript/cache/**key: genaiscript-${{ github.run_id }}restore-keys: genaiscript-# Improve the comments in the codebase
- name: improve commentsuses: pelikhan/action-continuous-comments@v0with:
github_token: ${{ secrets.GITHUB_TOKEN }}max_edits: 20# Create a pull request with the changes
- name: create pull requestuses: peter-evans/create-pull-request@v7with:
token: ${{ secrets.GITHUB_TOKEN }}title: "genai-commentor: Suggested comment improvements"body: "Hi! π I'm a Code Commentor π€.\n\nThis pull request was automatically generated by the genai-commentor action to write and update code comments.\n\n> β οΈ AI can make mistakes β please review carefully before merging. β "branch: genai-commentor/updatescommit-message: "Code Commentor: Suggested comment improvements"
Note
You must set "Allow GitHub Actions to create and approve pull requests" in your repository settings to allow the action to create pull requests with documentation updates.
Development
This action was automatically generated by GenAIScript from the script metadata.
We recommend updating the script metadata instead of editing the action files directly.
the action inputs are inferred from the script parameters
the action outputs are inferred from the script output schema
the action description is the script title
the readme description is the script description
the action branding is the script branding
To regenerate the action files (action.yml), run:
npm run configure
To lint script files, run:
npm run lint
To typecheck the scripts, run:
npm run typecheck
Upgrade
The GenAIScript version is pinned in the package.json file. To upgrade it, run:
npm run upgrade
Release
To release a new version of this action, run the release script on a clean working directory.
npm run release
About
Automatically creates or updates code documentation using Generative AI