github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/.github/workflows/chatgpt.yml (about)

     1  name: ChatGPT Code Review
     2  
     3  on:
     4    pull_request:
     5      types: [opened, synchronize]
     6  
     7  permissions:
     8    contents: write
     9    pull-requests: write
    10    issues: write
    11    statuses: write
    12  
    13  jobs:
    14    CodeReview:
    15      permissions: write-all
    16      name: ChatGPT Code Review
    17      runs-on: ubuntu-latest
    18      steps:
    19        - uses: fitomad/github-chatgpt-integration@main
    20          with:
    21            openai-api-key: ${{ secrets.OPENAI_TOKEN }}
    22            github-token: ${{ secrets.GITHUB_TOKEN }}
    23            github-pr-id: ${{ github.event.number }}
    24            dev-lang: Go
    25            openai-max-tokens: 4096
    26            #openai-engine: "code-davinci-002" # "gpt-4"