Skip to content

A GitHub action that generates LLM-assisted suggestions for improving Python code in PRs

Notifications You must be signed in to change notification settings

kislyuk/katalin

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

katalin GitHub action

This is a GitHub action that generates LLM-assisted suggestions for improving Python code in PRs, and posts them as PR comments.

See this sample PR for an example of katalin in action.

Inputs

openai-api-token

Required The OpenAI API token to use.

enabled-advisors

A newline-separated list of advisor modules to enable. Available advisors are:

  • docstrings: Provides doscstring suggestions for undocumented Python modules, functions, classes, and methods.
  • security: Provides comments regarding potential security concerns.
  • logic-check: Identifies possible logic errors.

Example usage

uses: kislyuk/katalin@v1
with:
  openai-api-key: ${{secrets.OPENAI_API_KEY}}
  enabled-advisors: |-
    docstrings
    security
    logic-check

See Using secrets in GitHub Actions for details on how to set the secret above.

About

A GitHub action that generates LLM-assisted suggestions for improving Python code in PRs

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages