summaryrefslogblamecommitdiffstats
path: root/.github/workflows/copilot.yml
blob: f7083c0c51507529a4dfc682b9aa2e8c114fa6e8 (plain) (tree)
1
2
3
4
5
6





                      

























                                             
name: AI Code Reviewer

on:
  pull_request:
    types:
      - opened

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