Skip to content

Commit

Permalink
Merge pull request #4 from Certseeds/chatgpt_codereview
Browse files Browse the repository at this point in the history
import double actions to provide ideas
  • Loading branch information
Certseeds committed Mar 3, 2023
2 parents 4d92f6b + 44fd67f commit be1a964
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened, submitted, edited, synchronize]

jobs:
test:
if: github.repository == 'Certseeds/openpgpage'
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
with:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{github.event.pull_request.head.ref}}
submodules: false

- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.CHATGPT_SESSION_TOKEN }}

- uses: unsafecoerce/chatgpt-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHATGPT_ACCESS_TOKEN: ${{ secrets.CHATGPT_SESSION_TOKEN }}
OPENAI_API_KEY: ''
with:
debug: false
action: score

0 comments on commit be1a964

Please sign in to comment.