From a94127716950041c46321b51d99f7210a9aad064 Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Mon, 4 Dec 2023 20:19:53 -0600 Subject: [PATCH] Fixes labeler --- .github/labeler.yml | 56 +++++++++++++++++++++++------------ .github/workflows/labeler.yml | 2 +- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 55b0ba3015af7..5b585de453227 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,49 +1,67 @@ Admin: - - "code/modules/admin/**" + - any-glob-to-any-file: + - "code/modules/admin/**" # Any file within the config subfolder Config: - - "config/**" +- changed-files: + - any-glob-to-any-file: + - "config/**" Dependencies: - - "**/package.json" - - "**/package-lock.json" - - "**/yarn.lock" +- changed-files: + - any-glob-to-any-file: + - "**/package.json" + - "**/package-lock.json" + - "**/yarn.lock" # When the .DME is changed DME Edit: - - "./*.dme" - - "**/*.dme" +- changed-files: + - any-glob-to-any-file: + - "./*.dme" + - "**/*.dme" # Any .dmi changes Sprites: - - "**/*.dmi" +- changed-files: + - any-glob-to-any-file: + - "**/*.dmi" # Changes to a .dm or anything in the code subfolder Code Change: - - "**/*.dm" - - "code/**" +- changed-files: + - any-glob-to-any-file: + - "**/*.dm" + - "code/**" # Changes to a .dmm or anything in the _map subfolder Map Change: - - "**/*.dmm" - - "_maps/**" +- changed-files: + - any-glob-to-any-file: + - "**/*.dmm" + - "_maps/**" # Any changes to .ogg files are marked as sound Sound: - - "**/*.ogg" +- changed-files: + - any-glob-to-any-file: + - "**/*.ogg" # Changes to the SQL subfolder SQL: - - "SQL/**" +- changed-files: + - any-glob-to-any-file: + - "SQL/**" # Changes to the tgui subfolder tgui: - - "tgui/**" +- changed-files: + - any-glob-to-any-file: + - "tgui/**" # Changes to the .Github subfolder Github: - - ".github/**" - -Deprecated Modularization: - - "whitesands/**" +- changed-files: + - any-glob-to-any-file: + - ".github/**" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index aea88c49e9fa2..dc3a206fe3854 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -18,7 +18,7 @@ jobs: commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." - name: Apply labels based on changed files if: github.event_name != 'push' - uses: actions/labeler@main + uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: true