summaryrefslogtreecommitdiffstats
path: root/.github/workflows/copilot.yml
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-01-21 02:18:00 +0100
committerGitHub <noreply@github.com>2024-01-21 02:18:00 +0100
commita98a9e92bcfaac7a364a9ea093ae42af9237fc88 (patch)
treef6e33c929444ccea288257664ecbe9655650fac1 /.github/workflows/copilot.yml
parentMerge pull request #1485 from Eikosa/patch-3 (diff)
parentFix permissions (diff)
downloadgpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar.gz
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar.bz2
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar.lz
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar.xz
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.tar.zst
gpt4free-a98a9e92bcfaac7a364a9ea093ae42af9237fc88.zip
Diffstat (limited to '.github/workflows/copilot.yml')
-rw-r--r--.github/workflows/copilot.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml
new file mode 100644
index 00000000..c34dcb11
--- /dev/null
+++ b/.github/workflows/copilot.yml
@@ -0,0 +1,31 @@
+name: AI Code Reviewer
+
+on:
+ pull_request:
+ types:
+ - opened
+ - synchronize
+
+env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+permissions: write-all
+
+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 \ No newline at end of file