ankosoftware / anko-public-scripts

anko-public-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Take Action

Review PR with OpenAI GPT model

Usage

Setup

Example Workflow:

# .github/workflows/review.yml

name: Review PR with OpenAI GPT model
on:
  pull_request:
    types: [opened]
  issue_comment:
    types: [created]
jobs:
  run-local-action:
    if: |
        github.event.pull_request ||
        (github.event.issue.pull_request &&
        startsWith(github.event.comment.body, 'openai'))
    name: Review PR
    runs-on: ubuntu-latest
    steps:
      - name: Run checkout
        uses: actions/checkout@v2
      - name: Display working directory files
        run: |
          echo "Working directory files:"
          ls -al
      - name: Run custom action
        uses: ./.github/actions
        with:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

About

anko-public-scripts


Languages

Language:Python 100.0%