added workflow

This commit is contained in:
David Gey 2023-10-19 17:18:13 +02:00
parent c6052165ed
commit 051c3f7aaf

View file

@ -8,16 +8,29 @@ on:
- synchronize
permissions: write-all
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
# review:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v3
#
# - name: AI Code Reviewer
# uses: thankthemaker/ai-code-reviewer@main
# with:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
# exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
- name: AI Code Reviewer
uses: thankthemaker/ai-code-reviewer@main
codeball_job:
runs-on: ubuntu-latest
name: Codeball
steps:
- name: Codeball
uses: sturdy-dev/codeball-action@v2
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
# For all configuration options see https://github.com/sturdy-dev/codeball-action/blob/v2/action.yml
approvePullRequests: "true"
labelPullRequestsWhenApproved: "true"
labelPullRequestsWhenReviewNeeded: "false"
failJobsWhenReviewNeeded: "false"