Skip to content

Commit

Permalink
docs: update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fiqryq authored May 19, 2024
1 parent 7fca015 commit 845de95
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@
A GitHub bot powered by OpenAI for code review on pull requests.

## usage
.....WIP
```yaml
name: Code review using rebotai
on:
issue_comment:
types: [created]

jobs:
test_code_review:
if: >
github.event.issue.pull_request != null &&
contains(github.event.comment.body, '/review')
runs-on: ubuntu-latest
steps:
- uses: fiqryq/rebotai@{version}
with:
gh-token: ${{ secrets.GH_TOKEN }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
```
## example response
![CleanShot 2024-05-19 at 13 04 40](https://github.com/fiqryq/rebotai/assets/25787603/3cad6a1b-6f1f-4d85-9eb2-86a36acacc8b)

0 comments on commit 845de95

Please sign in to comment.