Skip to content

How to code review with push instead of pull #137

Open
@dev-shinyu

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions