From 773adfe7842a4909233238e82bae937f858b0ced Mon Sep 17 00:00:00 2001 From: trimmedjay Date: Wed, 6 Nov 2024 16:35:29 +0000 Subject: [PATCH 1/4] Create labels.yml --- .github/workflows/labels.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 0000000..645c08e --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,20 @@ +name: Auto-Label PRs and Issues + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + auto-label: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Auto-label + uses: actions/labeler@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} From a14a2c3c2b1302384bf53bb8d69f1bd4668b67ca Mon Sep 17 00:00:00 2001 From: trimmedjay Date: Thu, 7 Nov 2024 09:41:13 +0000 Subject: [PATCH 2/4] Create labeler.yml --- .github/labeler.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..649d4ac --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,26 @@ +# .github/labeler.yml + +# Label PRs touching C++ source files +cpp: + - 'src/**/*.cpp' + - 'ml_library_include/**/*.h' + - 'ml_library_include/**/*.hpp' + +# Label PRs touching documentation +docs: + - 'docs/**/*' + - '**/*.md' + +# Label PRs touching tests +tests: + - 'tests/**/*' + +# Label PRs touching examples +examples: + - 'examples/**/*' + +# Label PRs touching GitHub workflows +ci: + - '.github/workflows/**/*' + + From fe16c6ec44563a9893216ec1e3bc30a218560490 Mon Sep 17 00:00:00 2001 From: trimmedjay Date: Thu, 7 Nov 2024 09:41:29 +0000 Subject: [PATCH 3/4] Delete .github/workflows/labels.yml --- .github/workflows/labels.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml deleted file mode 100644 index 645c08e..0000000 --- a/.github/workflows/labels.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Auto-Label PRs and Issues - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - auto-label: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Auto-label - uses: actions/labeler@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} From d849bcb21dc50aec6b74a86a116792fb18e17a31 Mon Sep 17 00:00:00 2001 From: trimmedjay Date: Thu, 7 Nov 2024 09:42:00 +0000 Subject: [PATCH 4/4] Create auto-label.yml --- .github/workflows/auto-label.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/auto-label.yml diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..619b6af --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,27 @@ +# .github/workflows/auto-label.yml + +name: Auto-Label PRs and Issues + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + auto-label: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Auto-label + uses: actions/labeler@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}