-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (36 loc) · 1.13 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: katalin - Python code advisor
description: Comments on PRs with suggested documentation, security, and logic improvements
branding:
icon: aperture
color: blue
inputs:
openai-api-key:
description: The OpenAI API key used to create an authenticated OpenAI API client
required: true
openai-model-name:
description: The OpenAI model to use to generate suggestions
default: gpt-3.5-turbo-0125
enabled-advisors:
description: List of advisor modules to enable
default: |-
docstrings
security
logic-check
required: true
defaults:
run:
shell: bash
runs:
using: "composite"
steps:
- run: |
pip install -r "${{github.action_path}}/requirements.txt"
python "${{github.action_path}}/main.py"
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_EVENT: ${{ toJson(github.event) }}
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
OPENAI_MODEL_NAME: ${{ inputs.openai-model-name }}
ENABLED_ADVISORS: ${{ inputs.enabled-advisors }}
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'skip-llm-advisors') }}