On workflow_run copilot

This commit is contained in:
Heiner Lohaus 2024-01-21 16:42:55 +01:00
parent fd0507a422
commit eb1668518f
1 changed files with 7 additions and 5 deletions

View File

@ -1,15 +1,17 @@
name: AI Code Reviewer
on:
pull_request:
workflow_run:
workflows: ["build"]
types:
- opened
- synchronize
- completed
jobs:
review:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
@ -25,5 +27,5 @@ jobs:
run: pip install PyGithub
- name: AI Code Review
env:
GITHUB_TOKEN: ${{ secrets.COPILOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python -m etc.tool.copilot