summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 02:38:24 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 02:38:24 +0100
commite13aa2e438da0839f1200fe87c09ecc2fd6c4838 (patch)
tree9dbb0fbcd3a9d90d6c34d35c2988ceeb5afa035f
parentImprove tests (diff)
downloadgpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar.gz
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar.bz2
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar.lz
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar.xz
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.tar.zst
gpt4free-e13aa2e438da0839f1200fe87c09ecc2fd6c4838.zip
-rw-r--r--.github/workflows/copilot.yml10
-rw-r--r--.github/workflows/unittest.yml9
2 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml
index 38c24378..7ec17ba6 100644
--- a/.github/workflows/copilot.yml
+++ b/.github/workflows/copilot.yml
@@ -6,16 +6,10 @@ on:
- opened
- synchronize
-env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-permissions:
- contents: read
- pull-requests: write
-
jobs:
review:
runs-on: ubuntu-latest
+ permissions: write-all
steps:
- name: Checkout Repo
uses: actions/checkout@v3
@@ -30,4 +24,6 @@ jobs:
- name: Install PyGithub
run: pip install PyGithub
- name: AI Code Review
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python -m etc.tool.copilot \ No newline at end of file
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
index 0646eab5..03a02f6a 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -1,6 +1,13 @@
name: Unittest
-on: [push]
+on:
+ pull_request:
+ types:
+ - opened
+ - synchronize
+ push:
+ branches:
+ - 'main'
jobs:
build: