Skip to content

Commit

Permalink
ci: Auto-label PRs based on the scope of their diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Feb 29, 2024
1 parent 40f98f0 commit 695049b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**
11 changes: 11 additions & 0 deletions .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 695049b

Please sign in to comment.