aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Reinier van der Leer <pwuts@agpt.co> 2024-02-29 19:38:04 +0100
committerGravatar Reinier van der Leer <pwuts@agpt.co> 2024-02-29 19:38:04 +0100
commit695049bfa3ec8e5d1eae5c26224f468453759708 (patch)
tree3c4926bcc1b1208e16f87dc8e0700c8e042d82e6
parentchore: Change `agbenchmark` to directory dependency in `autogpt` and `forge` ... (diff)
downloadAuto-GPT-695049bfa3ec8e5d1eae5c26224f468453759708.tar.gz
Auto-GPT-695049bfa3ec8e5d1eae5c26224f468453759708.tar.bz2
Auto-GPT-695049bfa3ec8e5d1eae5c26224f468453759708.zip
ci: Auto-label PRs based on the scope of their diff
-rw-r--r--.github/labeler.yml23
-rw-r--r--.github/workflows/pr-label.yml11
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 000000000..140174388
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,23 @@
+AutoGPT Agent:
+- changed-files:
+ - any-glob-to-any-file: autogpts/autogpt/**
+
+Forge:
+- changed-files:
+ - any-glob-to-any-file: autogpts/forge/**
+
+Benchmark:
+- changed-files:
+ - any-glob-to-any-file: benchmark/**
+
+Frontend:
+- changed-files:
+ - any-glob-to-any-file: frontend/**
+
+Arena:
+- changed-files:
+ - any-glob-to-any-file: arena/**
+
+documentation:
+- changed-files:
+ - any-glob-to-any-file: docs/**
diff --git a/.github/workflows/pr-label.yml b/.github/workflows/pr-label.yml
index 512daf116..f550fe8e6 100644
--- a/.github/workflows/pr-label.yml
+++ b/.github/workflows/pr-label.yml
@@ -55,3 +55,14 @@ jobs:
message_if_xl: >
This PR exceeds the recommended size of 500 lines.
Please make sure you are NOT addressing multiple issues with one PR.
+
+ scope:
+ if: ${{ github.event_name == 'pull_request_target' }}
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v5
+ with:
+ sync-labels: true