fix: 修复页面为空时,右键触发报错 #561
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Review By ChatGPT | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
code-review: | |
name: Code Review | |
runs-on: ubuntu-latest | |
steps: | |
# 判断用户是否有写仓库权限 | |
- name: 'Check User Permission' | |
uses: 'lannonbr/[email protected]' | |
with: | |
permission: 'write' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: opensumi/actions/.github/actions/code-review@main | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |