Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to code review with push instead of pull #137

Open
dev-shinyu opened this issue Jan 24, 2024 · 3 comments
Open

How to code review with push instead of pull #137

dev-shinyu opened this issue Jan 24, 2024 · 3 comments

Comments

@dev-shinyu
Copy link

Can bots review during push event on github as well? I set it as below but it doesn't seem to work. Is there a way?
API_KEY registered successfully.

.github/workflows/cr.yml

name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: Chinese
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: gpt-3.5-turbo-1106

@anc95
Copy link
Owner

anc95 commented Jan 27, 2024

Have you checked the CI job, was it run successfully?

@dev-shinyu
Copy link
Author

@anc95 Of course, I checked it

@vitaly-zdanevich
Copy link

Works for me:

on:
  push:
    branches:
      - 'master'
  pull_request:
    types: [opened, reopened, synchronize]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@vitaly-zdanevich @anc95 @dev-shinyu and others