Skip to content

Commit

Permalink
#48 open-ai-pr-reviewrを追加 (#49)
Browse files Browse the repository at this point in the history
https://github.com/coderabbitai/openai-pr-reviewer

will closes #48
<!-- This is an auto-generated comment: release notes by openai -->
### Summary by OpenAI

New Feature: Added `openai-pr-reviewer` GitHub Action for code review.

> "A bot of wisdom, with code it's smitten,
> OpenAI PR Reviewer, a reviewer that's written.
> With logic and insight, it lends its aid,
> Improving code quality, like a helpful blade."
<!-- end of auto-generated comment: release notes by openai -->
  • Loading branch information
fumikito authored Jul 18, 2023
2 parents 3318c99 + 2ca6eb2 commit 8896e26
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/openai-pr-reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
pull_request_review_comment:
types: [created]

concurrency:
group:
${{ github.repository }}-${{ github.event.number || github.head_ref ||
github.sha }}-${{ github.workflow }}-${{ github.event_name ==
'pull_request_review_comment' && 'pr_comment' || 'pr' }}
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}

jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: coderabbitai/openai-pr-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
debug: false
review_simple_changes: false
review_comment_lgtm: false

0 comments on commit 8896e26

Please sign in to comment.