forked from irgolic/AutoPR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (51 loc) · 1.69 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
name: 'Automatic Pull Request'
description: 'Fix issues with AI-generated pull requests, powered by ChatGPT GPT-4 (AutoPR)'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'git-pull-request'
color: 'purple'
inputs:
github_token:
description: 'GitHub token'
required: true
base_branch:
description: 'Base branch'
default: 'main'
loading_gif_url:
description: 'URL of the gif to display while the PR is being generated'
default: 'https://media0.giphy.com/media/l3nWhI38IWDofyDrW/giphy.gif'
model:
description: 'Name of the OpenAI chat model'
default: 'gpt-4'
context_limit:
description: 'Maximum size of the context window to use, varies depending on the model and preference'
default: '8192'
min_tokens:
description: 'Minimum number of tokens to be made available for generation'
default: '1000'
max_tokens:
description: 'Maximum number of tokens to generate'
default: '2000'
num_reasks:
description: 'Number of times to re-ask the model in file exploration and commit generation'
default: '2'
agent_id:
description: 'ID of the brain to use'
default: 'plan_and_code'
agent_config:
description: 'Configuration for the coordinating agent in yaml format'
default: ''
target_branch_name_template:
description: 'Template for the name of the target branch'
default: 'autopr/{issue_number}'
temperature:
description: 'Temperature for the model'
default: '0.9'
rail_temperture:
description: 'Temperature for the guardrails calls'
default: '0.9'
overwrite_existing:
description: 'Whether to overwrite existing branches and pull requests when creating from issues'
default: 'false'