-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an action for an AI Pull Request helper
Signed-off-by: Justin Kulikauskas <[email protected]>
- Loading branch information
1 parent
74b724a
commit e11d0a8
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: | ||
pull_request: | ||
types: [opened, reopened, ready_for_review] | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
pr_agent_job: | ||
if: ${{ github.event.sender.type != 'Bot' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: write | ||
name: Run pr agent on every pull request, respond to user comments | ||
steps: | ||
- name: PR Agent action step | ||
id: pr-agent | ||
uses: Codium-ai/pr-agent@main | ||
env: | ||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Describe - too noisy, I prefer to write the description myself. | ||
github_action_config.auto_describe: "false" | ||
pr_description.publish_labels: "false" | ||
pr_description.publish_description_as_comment: "true" | ||
# Review - remove parts that overlap with 'Improve' | ||
github_action_config.auto_review: "true" | ||
pr_reviewer.num_code_suggestions: "0" | ||
pr_reviewer.require_score_review: "true" | ||
pr_reviewer.enable_review_labels_security: "false" | ||
pr_reviewer.enable_review_labels_effort: "false" | ||
# Improve | ||
github_action_config.auto_improve: "true" | ||
pr_code_suggestions.rank_suggestions: "true" | ||
pr_code_suggestions.commitable_code_suggestions: "true" | ||
# Other | ||
github_action_config.enable_output: "false" |