2024-01-20 20:16:18 +03:00
|
|
|
name: AI Code Reviewer
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
2024-01-20 21:10:08 +03:00
|
|
|
- synchronize
|
2024-01-20 20:16:18 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2024-01-20 21:10:08 +03:00
|
|
|
permissions: write-all
|
2024-01-20 20:16:18 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
review:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
|
|
|
run: python -m etc.tool.copilot
|