Skip to content

Fix issue labeling: move labeler config out of workflows/, make auto-label.yml runnable - #20

Merged
Pnwcomputers merged 2 commits into
mainfrom
fix/labeler-config-location
Nov 17, 2026
Merged

Pnwcomputers merged 2 commits into
mainfrom
fix/labeler-config-location

Conversation

@Pnwcomputers

@Pnwcomputers Pnwcomputers commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

1. labeler.yml failing on every push

.github/workflows/labeler.yml is not a workflow. It is the label → regex config for github/issue-labeler. It was committed into .github/workflows/ (ce3972e). GitHub treats every file in that folder as a workflow, so on every push it tried to parse it, found no on:/jobs:, and rejected it ("This run likely failed because of a workflow file issue", 0s).

auto-label.yml reads its config from .github/labeler.yml, which didn't exist. The two files weren't duplicates. One was the other's config, saved in the wrong folder.

Fix: git mv .github/workflows/labeler.yml .github/labeler.yml, with the content unchanged.

2. auto-label.yml could never have worked

Its only run (Apr 2026, issues: opened) failed during job setup with no steps run. Three problems:

Problem Fix
github/issue-labeler@v3 doesn't resolve: upstream has only v3.0–v3.5 tags, with no floating v3 pin @v3.5 (latest, Aug 2026)
enable-versioned-regex is a required input and wasn't set enable-versioned-regex: 0
Repo default GITHUB_TOKEN permission is read, so adding labels would 403 permissions: contents: read, issues: write

The trigger (issues: opened) is unchanged and fits what the workflow does.

Testing

You can't fully test this from a PR, because issues workflows run only from the default branch. After merging, open a test issue whose body contains e.g. "crash" and check that it gets the bug label. By default the action matches only the issue body (include-title: 0). Add include-title: 1 if titles should count too.

🤖 Generated with Claude Code

Pnwcomputers and others added 2 commits November 17, 2026 10:43
.github/workflows/labeler.yml was never a workflow: it is the label -> regex
config for github/issue-labeler. Because it sat in .github/workflows, GitHub
tried to parse it as a workflow on every push and rejected it ("workflow file
issue"). Meanwhile auto-label.yml looks for its config at .github/labeler.yml,
which did not exist.

Moving the file to .github/labeler.yml stops the bogus failing run and gives
auto-label.yml the config it expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Pnwcomputers
Pnwcomputers merged commit d24ef49 into main Nov 17, 2026
2 checks passed
@Pnwcomputers
Pnwcomputers deleted the fix/labeler-config-location branch November 17, 2026 18:54
@Pnwcomputers Pnwcomputers changed the title Fix failing labeler.yml run: move issue-labeler config out of workflows/ Fix issue labeling: move labeler config out of workflows/, make auto-label.yml runnable Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant