Skip to content

Commit

Permalink
Add code review workflow (#14)
Browse files Browse the repository at this point in the history
* Add code review workflow

* Fix typo in prompt message

* Update PROMPT message in cr.yml

---------
  • Loading branch information
KleinerCodeDrago authored Feb 21, 2024
1 parent 2ae4c9c commit ebe12ff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PROMPT: "You are a software engineer who should review this pull request. You are currently typing in the comment section:"

0 comments on commit ebe12ff

Please sign in to comment.