diff --git a/.github/labeler.yml b/.github/labeler.yml index 7c6022c03d..a7d6d1b36c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,39 +1,21 @@ "English": -- 'src/en/**' +- changed-files: + - any-glob-to-any-file: 'src/en/**' "Russian": -- 'src/ru/**' +- changed-files: + - any-glob-to-any-file: 'src/ru/**' "Ukrainian": -- 'src/ua/**' +- changed-files: + - any-glob-to-any-file: 'src/ua/**' "Scripts": -- 'scripts/**' +- changed-files: + - any-glob-to-any-file: 'scripts/**' -# I have tried making this robust (tm) using wildcards so many times but github docs for the labeler SUUUUCK. If you got time to figure it out please do it I give up. -# Welcome to the mega labeler. "Design": -# General design -- 'src/en/space-station-14/accessibility/proposals/**' -- 'src/en/space-station-14/admin-tools/proposals/**' -- 'src/en/space-station-14/art/proposals/**' -- 'src/en/space-station-14/character-species/proposals/**' -- 'src/en/space-station-14/combat/proposals/**' -- 'src/en/space-station-14/mapping/proposals/**' -- 'src/en/space-station-14/player-interaction/proposals/**' -- 'src/en/space-station-14/roleplay-lore/proposals/**' -- 'src/en/space-station-14/round-flow/proposals/**' -- 'src/en/space-station-14/user-interface/proposals/**' - -# Department design -- 'src/en/space-station-14/departments/atmos/proposals/**' -- 'src/en/space-station-14/departments/cargo-salvage/proposals/**' -- 'src/en/space-station-14/departments/command/proposals/**' -- 'src/en/space-station-14/departments/engineering/proposals/**' -- 'src/en/space-station-14/departments/medical/proposals/**' -- 'src/en/space-station-14/departments/science/proposals/**' -- 'src/en/space-station-14/departments/security/proposals/**' -- 'src/en/space-station-14/departments/service/proposals/**' - -# General proposals -- 'src/en/general-proposals/**' +- changed-files: + - any-glob-to-any-file: + - 'src/en/general-proposals/**' + - 'src/en/**/proposals/**' diff --git a/.github/workflows/labeler-pr.yml b/.github/workflows/labeler-pr.yml index 1b87e65552..433bba2c0a 100644 --- a/.github/workflows/labeler-pr.yml +++ b/.github/workflows/labeler-pr.yml @@ -5,8 +5,9 @@ on: jobs: labeler: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + - uses: actions/labeler@v5