Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

OpenAI PR Agent Setup #1405

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
592e947
added initial setup for openai pr agent
pluckyswan Oct 9, 2024
8ec8364
remove .toml file and renamed env
pluckyswan Oct 9, 2024
6c083eb
readd .toml file
pluckyswan Oct 9, 2024
e71443d
Add some env variables to pr_agent
saquino0827 Oct 10, 2024
b6a1359
change pr trigger on all PR updates
saquino0827 Oct 10, 2024
595737d
Adding every configuration combination possible
saquino0827 Oct 10, 2024
1ce9caa
Update API version
saquino0827 Oct 10, 2024
a8b1b54
Update PR agent name for testing purposes
saquino0827 Oct 10, 2024
68f0394
Update github actions in configurations
saquino0827 Oct 10, 2024
a6ddf8e
Testing next set of configurations
saquino0827 Oct 10, 2024
48906b1
Remove suggested invalid configurations
saquino0827 Oct 10, 2024
f425351
Update env variables to match our github secrets
saquino0827 Oct 10, 2024
0547def
Remove github settings from workflow and add to the .toml file
saquino0827 Oct 10, 2024
416ffe1
update settings
saquino0827 Oct 10, 2024
21e31f9
Add review settings to toml file
saquino0827 Oct 10, 2024
98813f4
Add preview to the azure version
saquino0827 Oct 10, 2024
add342d
add inline code comments and update comments
pluckyswan Oct 10, 2024
4f5f36a
added comments for existing configuration and turned off labeling and…
pluckyswan Oct 14, 2024
b885e9b
specify type for `issue_comment`
somesylvie Oct 15, 2024
8f18153
add additional trigger since `issue_comment` only works if workflow i…
somesylvie Oct 15, 2024
4448436
let's see if we can stop labeling so much
somesylvie Oct 15, 2024
b80ee66
remove settings that are default; add a link to example settings
somesylvie Oct 15, 2024
c9f1a28
Merge branch 'main' into pr-agent
saquino0827 Oct 15, 2024
c0e5dba
adjust some more settings
somesylvie Oct 15, 2024
94d1509
one more
somesylvie Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove github settings from workflow and add to the .toml file
saquino0827 committed Oct 10, 2024
commit 0547def916dcce13636dd9317d34cd274ded8666
3 changes: 0 additions & 3 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
@@ -18,9 +18,6 @@ jobs:
uses: Codium-ai/pr-agent@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_action_config.auto_review: "true"
github_action_config.auto_describe: "true"
github_action_config.auto_improve: "true"
OPENAI_KEY: ${{ secrets.AZURE_OPENAI_KEY }}
OPENAI.API_TYPE: 'azure'
OPENAI.API_BASE: ${{ secrets.AZURE_OPENAI_BASE_URL }}
8 changes: 7 additions & 1 deletion .pr_agent.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[config]
model="gpt-4" # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)
model_turbo="gpt-4" # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)
fallback_models=["gpt-4"] # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)
fallback_models=["gpt-4"] # the OpenAI model you've deployed on Azure (e.g. gpt-3.5-turbo)

[github_action_config]
auto_review = true
auto_describe = true
auto_improve = true
pr_actions = ["opened", "reopened", "ready_for_review", "review_requested"]