mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 03:23:49 +03:00
Create copilot.yml
This commit is contained in:
parent
49185f648d
commit
ef7194237b
29
.github/workflows/copilot.yml
vendored
Normal file
29
.github/workflows/copilot.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: AI Code Reviewer
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
review:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.x"
|
||||
cache: 'pip'
|
||||
- name: Install Requirements
|
||||
run: pip install -r requirements.txt
|
||||
- name: Install PyGithub
|
||||
run: pip install PyGithub
|
||||
- name: AI Code Review
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.COPILOT_TOKEN }}
|
||||
run: python -m etc.tool.copilot
|
Loading…
Reference in New Issue
Block a user