summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-01-21 11:42:53 +0100
committerGitHub <noreply@github.com>2024-01-21 11:42:53 +0100
commitef7194237b55ee32950b86981805099358572f9b (patch)
tree34a3acf11a4eb840d84cada9e0e083ca8fab5178 /.github
parentDelete .github/workflows/copilot.yml (diff)
downloadgpt4free-ef7194237b55ee32950b86981805099358572f9b.tar
gpt4free-ef7194237b55ee32950b86981805099358572f9b.tar.gz
gpt4free-ef7194237b55ee32950b86981805099358572f9b.tar.bz2
gpt4free-ef7194237b55ee32950b86981805099358572f9b.tar.lz
gpt4free-ef7194237b55ee32950b86981805099358572f9b.tar.xz
gpt4free-ef7194237b55ee32950b86981805099358572f9b.tar.zst
gpt4free-ef7194237b55ee32950b86981805099358572f9b.zip
Diffstat (limited to '')
-rw-r--r--.github/workflows/copilot.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml
new file mode 100644
index 00000000..1de81cb6
--- /dev/null
+++ b/.github/workflows/copilot.yml
@@ -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