Skip to content

ankosoftware/anko-public-scripts

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }}