summaryrefslogblamecommitdiffstats
path: root/.github/workflows/copilot.yml
blob: a43ee19ad185f3bb6d24940675c9ad16598e78e9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                      
               
                           
          
                 



                          


                          














                                            
                                                   
                
name: AI Code Reviewer

on:
  workflow_run:
    workflows: ["Unittest"]
    types:
      - completed

jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    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.GITHUB_TOKEN }}
        run: env