feat: Add another photo action #10
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: Code Review by ChatGPT | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
verify-chat-gpt-review: | |
name: Verify requirements to ask ChatGPT of code review | |
runs-on: ubuntu-latest | |
outputs: | |
RUN_CHAT_GPT: ${{ steps.check.outputs.triggered == 'true' }} | |
steps: | |
- uses: khan/[email protected] | |
id: check | |
with: | |
trigger: "[x] ChatGPT Review" | |
gpt-code-review: | |
name: ChatGPT Code Review | |
runs-on: ubuntu-latest | |
needs: verify-chat-gpt-review | |
if: ${{ needs.verify-deploy-comment.outputs.RUN_CHAT_GPT == 'true' }} | |
steps: | |
- uses: anc95/ChatGPT-CodeReview@main | |
name: ChatGPT-CodeReview | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.GITHUBPR_MAP_ON_PHOTO }} | |
LANGUAGE: English | |