From 5a66b0c05a3b2aa79661b70fb911eb92206bfeeb Mon Sep 17 00:00:00 2001 From: Sal <59910950+ss-o@users.noreply.github.com> Date: Wed, 19 Aug 2026 03:13:00 +0100 Subject: [PATCH 1/2] ci(labeler): use the default GITHUB_TOKEN instead of an unset PAT The labeler job passes repo-token from secrets.GH_PAT, which is not populated, so actions/labeler exits with "Parameter token or opts.auth is required" before reading any configuration. The workflow has therefore never applied a label. No PAT is needed. The job already declares pull-requests: write, the only permission actions/labeler requires for a same-repository pull request, so the default GITHUB_TOKEN is sufficient and avoids a long-lived credential. Verified in z-shell/z-a-submods#7: after the same change, the labeler ran to completion and applied the correct canonical label. Refs z-shell/.github#527 --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 33e118e..c261e02 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -13,5 +13,5 @@ jobs: steps: - uses: actions/labeler@v4 with: - repo-token: "${{ secrets.GH_PAT }}" + repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: false From 3ef4c86f88dacb26c10527540dfbd4599cfe7cda Mon Sep 17 00:00:00 2001 From: Sal <59910950+ss-o@users.noreply.github.com> Date: Wed, 19 Aug 2026 03:37:03 +0100 Subject: [PATCH 2/2] ci(labels): use canonical label names in labeler config The config named legacy labels that z-shell/.github#467 deleted org-wide. Now that the labeler can authenticate again, those names would be applied for real, and actions/labeler creates a label that does not exist rather than failing, so the deleted legacy labels would come straight back. Map each key to its lib/labels.yml replacement and drop the i18n key, which this repository has never used; it arrived from a Docusaurus-shaped template along with the crowdin and docusaurus globs. enhancement and maintenance both map to type:maintenance, so their glob lists merge into one key rather than being renamed one for one. Refs z-shell/.github#527 --- .github/labeler.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 3456afa..7382b62 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,16 +1,15 @@ -documentation 📝: +type:docs: - "docs/**/*.md" - "community/**/*.md" - "ecosystem/**/*.md" -dependencies 📦: +area:dependencies: - "package.json" - "pnpm-lock.yaml" - "yarn.lock" -enhancement ✨: +type:maintenance: - "functions/**" - "src/**" - "lib/**" -maintenance 📈: - ".all-contributorsrc" - ".deepsource.toml" - ".editorconfig" @@ -33,16 +32,7 @@ maintenance 📈: - "crowdin.yml" - "netlify.toml" - "tsconfig.json" -i18n 🌐: - - "i18n/**" - - "docs/i18n/**" -annex 🌀: +area:annex: - "*" -#package 📦: -# - 'ecosystem/packages/**/*.md' -# - 'i18n/**/docusaurus-plugin-content-ecosystem/**/packages/**/*.md' -#plugin ⚙️: -# - 'ecosystem/plugins/**.md' -# - 'i18n/**/docusaurus-plugin-content-ecosystem/**/plugins/**/*.md' -ci 🤖: +area:ci: - ".github/workflows/*"