-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathaction.yml
60 lines (59 loc) · 2.09 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
49
50
51
52
53
54
55
56
57
58
59
60
name: 'Autofill PR Description with OpenAI'
description: "Autofill you pull request with a high quality description by harvesting the power of OpenAI and ChatGPT"
inputs:
github_token:
description: 'The GitHub token'
required: true
openai_api_key:
description: 'OpenAI API key'
required: true
pull_request_id:
description: 'Pull request id (otherwise attempt to extract it from the GitHub metadata)'
required: false
default: ''
allowed_users:
description: 'Comma-separated list of GitHub usernames this action will run for, if empty it will run for all users'
required: false
default: ''
openai_model:
description: 'OpenAI model to use, needs to be compatible with the chat/completions endpoint'
required: false
default: 'gpt-4o-mini'
max_tokens:
description: 'Maximum number of prompt tokens to use'
required: false
default: '1000'
temperature:
description: 'Temperature for the model, higher values will make the model more creative, lower values will make it more conservative'
required: false
default: '0.6'
sample_prompt:
description: 'Sample prompt to use for the model, refer to SAMPLE_PROMPT in the Python file.'
required: false
default: ''
sample_response:
description: 'A sample of an ideal response based on the sample prompt'
required: false
default: ''
completion_prompt:
description: 'Prompt to use as the final prompt to the model, refer to COMPLETION_PROMPT in the Python file.'
required: false
default: ''
overwrite_description:
description: 'Overwrite the PR description if it already exists. This also means that the action will run on every PR update'
required: false
default: 'false'
azure_endpoint:
description: 'Azure endpoint for OpenAI, if you are using Azure. Setting this will make the action use Azure OpenAI.'
required: false
default: ''
azure_openai_api_version:
description: 'OpenAI API version, if you are using Azure.'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'cpu'
color: 'green'