mirror of https://github.com/xtekky/gpt4free.git
On workflow_run copilot
This commit is contained in:
parent
fd0507a422
commit
eb1668518f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue