forked from irgolic/AutoPR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
60 lines (60 loc) · 1.95 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: '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'
pull_request_agent_id:
description: 'ID of the planner to use'
default: 'rail-v1'
codegen_agent_id:
description: 'ID of the code generator to use'
default: 'auto-v1'
brain_agent_id:
description: 'ID of the brain to use'
default: 'simple-v1'
target_branch_name_template:
description: 'Template for the name of the target branch'
default: 'autopr/{issue_number}'
pull_request_agent_config:
description: 'Configuration for the planner in yaml format'
default: ''
codegen_agent_config:
description: 'Configuration for the code generator in yaml format'
default: ''
brain_agent_config:
description: 'Configuration for the coordinating agent in yaml format'
default: ''
temperature:
description: 'Temperature for the model'
default: '0.9'
rail_temperture:
description: 'Temperature for the guardrails calls'
default: '0.9'