-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
48 lines (46 loc) · 1.25 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
40
41
42
43
44
45
46
47
48
# action.yaml
name: 'GitHub Actions ChatGPT PR Reviewer'
description: 'A Github Action that uses ChatGPT to review PRs'
inputs:
openai_api_key:
description: 'OpenAI API Key'
required: true
default: ''
openai_model:
description: 'OpenAI Model'
required: false
default: 'gpt-4-1106-preview'
openai_temperature:
description: 'Temperature fo randomness, 0 is more conservative and 1 is more creative.'
required: false
default: '0.5'
openai_max_tokens:
description: 'The maximum number of tokens to generate in the completion.'
required: false
default: '2048'
openai_extra_criteria:
description: 'Add extra criteria for the PR reviewer. Split your criteria with `;`'
required: false
default: ''
github_token:
description: 'Github API Key'
required: true
default: ''
github_pr_id:
description: 'Github PR ID'
required: true
default: ''
branding:
icon: check-circle
color: green
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.openai_api_key }}
- ${{ inputs.openai_model }}
- ${{ inputs.openai_temperature }}
- ${{ inputs.openai_max_tokens }}
- ${{ inputs.openai_extra_criteria }}
- ${{ inputs.github_token }}
- ${{ inputs.github_pr_id }}