Skip to content

Commit

Permalink
Add an action for an AI Pull Request helper
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kulikauskas <[email protected]>
  • Loading branch information
JustinKuli committed May 4, 2024
1 parent 74b724a commit e11d0a8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pr_agent.yaml
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"

0 comments on commit e11d0a8

Please sign in to comment.