name: AI Code Review (on comment) on: issue_comment: types: [created, edited] jobs: code-review: runs-on: ubuntu-latest if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai') steps: - name: Comment on PR uses: https://devstar.cn/beppeb/pr-comment-action@v1 with: body: "✅ 构建完成!" token: ${{ secrets.GH_TOKEN }} server: https://devstar.cn owner: beppeb repo: demo-workflow-repo pr_number: ${{ github.event.pull_request.number }}