summaryrefslogtreecommitdiffstats
path: root/.github/workflows/copilot.yml
blob: 38c24378b671b475b73f4e01aa64a53dd771751e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: AI Code Reviewer

on:
  pull_request:
    types:
      - opened
      - synchronize

env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
  contents: read
  pull-requests: write

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