Skip to content

Commit

Permalink
fix: add ai_review.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s2mr committed May 7, 2024
1 parent 75aaca2 commit 1100b6d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ai_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Butler

permissions:
contents: read
pull-requests: write

on:
issue_comment:
types: [created]

jobs:
review:
if: startsWith(github.event.comment.body, '/review')
runs-on: ubuntu-latest
steps:
- uses: ca-dp/code-butler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
cmd: review
lang: ja
chat:
if: startsWith(github.event.comment.body, '/chat')
runs-on: ubuntu-latest
steps:
- uses: ca-dp/code-butler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
cmd: chat
comment_body: ${{ github.event.comment.body }}
lang: ja

0 comments on commit 1100b6d

Please sign in to comment.