Skip to content

Commit

Permalink
feat: configure option (#14)
Browse files Browse the repository at this point in the history
* feat: configure option with @fabienzucchet

* feat: defaulting ci mode to review
  • Loading branch information
mattzcarey authored Jul 16, 2023
1 parent 391b151 commit 937fcd0
Show file tree
Hide file tree
Showing 15 changed files with 1,233 additions and 82 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,33 @@ https://github.com/mattzcarey/code-review-gpt/assets/77928207/92029baf-f691-465f

- Node.js
- Git
- Github CLI (optional for setup tool)

## CI Usage (GitHub Actions)
## Easy Setup (Github Actions)

In the root of your git repository run:

```shell
npm install code-review-gpt
npx code-review-gpt configure
```

## Template CI Usage (GitHub Actions)

```yml
- name: Install code-review-gpt
run: npm install code-review-gpt

- name: Run code review script
run: npx code-review-gpt --ci
run: npx code-review-gpt review --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
```
See .github/workflows/pr.yml for an example.
See templates/pr.yml for an example.
## Getting Started
Expand Down
Loading

0 comments on commit 937fcd0

Please sign in to comment.