Require screenshot/video for documentation PRs to ensure local verification #3920
This file contains hidden or 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: code_butler | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| review: | |
| if: startsWith(github.event.comment.body, '/review') | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: ca-dp/code-butler@v1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| cmd: review | |
| model: gpt-4-1106-preview | |
| chat: | |
| if: startsWith(github.event.comment.body, '/chat') | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: ca-dp/code-butler@v1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| cmd: chat | |
| model: gpt-4-1106-preview | |
| comment_body: ${{ github.event.comment.body }} |