From b02a693f3102c19a7797a18aaf567ece6f4d7b30 Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Wed, 21 Feb 2024 16:13:53 -0500 Subject: [PATCH] Re-add labeler and add some labels --- .github/labeler.yml | 78 +++++++++++++++++++++++++++++++------ .github/workflows/label.yml | 9 +++-- 2 files changed, 72 insertions(+), 15 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 5b3c064a..7c4589ca 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,12 +1,68 @@ --- -# this is a config file for the github action labeler - -# Add 'label1' to any changes within 'example' folder or any subfolders -example_change: - - example/** -# Add 'label2' to any file changes within 'example2' folder -example2_change: example2/* -# Add label3 to any change to .txt files within the entire repository. -# Quotation marks are required for the leading asterisk -text_files: - - '**/*.txt' +documentation: +- changed-files: + - any-glob-to-any-file: ['docs/**', "*.md"] + +tests: +- changed-files: + - any-glob-to-any-file: 'tests/**' + +agents: +- changed-files: + - any-glob-to-any-file: 'swarms/agents/**' + +artifacts: +- changed-files: + - any-glob-to-any-file: 'swarms/artifacts/**' + +chunkers: +- changed-files: + - any-glob-to-any-file: 'swarms/chunkers/**' + +cli: +- changed-files: + - any-glob-to-any-file: 'swarms/cli/**' + +loaders: +- changed-files: + - any-glob-to-any-file: 'swarms/loaders/**' + +memory: +- changed-files: + - any-glob-to-any-file: 'swarms/memory/**' + +models: +- changed-files: + - any-glob-to-any-file: 'swarms/models/**' + +prompts: +- changed-files: + - any-glob-to-any-file: 'swarms/prompts/**' + +structs: +- changed-files: + - any-glob-to-any-file: 'swarms/structs/**' + +telemetry: +- changed-files: + - any-glob-to-any-file: 'swarms/telemetry/**' + +tokenizers: +- changed-files: + - any-glob-to-any-file: 'swarms/tokenizers/**' + +tools: +- changed-files: + - any-glob-to-any-file: 'swarms/tools/**' + +utils: +- changed-files: + - any-glob-to-any-file: 'swarms/utils/**' + +workers: +- changed-files: + - any-glob-to-any-file: 'swarms/workers/**' + +rust: +- changed-files: + - any-glob-to-any-file: '**/*.rs' diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 8df27f57..9918f1b7 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -14,7 +14,8 @@ jobs: permissions: contents: read pull-requests: write - # steps: - # - uses: actions/labeler@v5 - # with: - # repo-token: "${{ secrets.GITHUB_TOKEN }}" + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true \ No newline at end of file