summaryrefslogtreecommitdiffstats
path: root/.github/workflows/copilot.yml
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-01-21 16:59:52 +0100
committerGitHub <noreply@github.com>2024-01-21 16:59:52 +0100
commitca6da4c858f8eb319e0b484865d2a58a78552016 (patch)
tree06f1d365c70b6bad7512743b70b5ff1deecbaecb /.github/workflows/copilot.yml
parentMerge pull request #1489 from hlohaus/neww (diff)
parentPrint env (diff)
downloadgpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar.gz
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar.bz2
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar.lz
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar.xz
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.tar.zst
gpt4free-ca6da4c858f8eb319e0b484865d2a58a78552016.zip
Diffstat (limited to '.github/workflows/copilot.yml')
-rw-r--r--.github/workflows/copilot.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml
index 1de81cb6..a43ee19a 100644
--- a/.github/workflows/copilot.yml
+++ b/.github/workflows/copilot.yml
@@ -1,15 +1,17 @@
name: AI Code Reviewer
on:
- pull_request:
+ workflow_run:
+ workflows: ["Unittest"]
types:
- - opened
- - synchronize
+ - completed
jobs:
review:
runs-on: ubuntu-latest
- permissions: write-all
+ permissions:
+ contents: read
+ pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
@@ -25,5 +27,5 @@ jobs:
run: pip install PyGithub
- name: AI Code Review
env:
- GITHUB_TOKEN: ${{ secrets.COPILOT_TOKEN }}
- run: python -m etc.tool.copilot
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: env