Skip to content

Accept conventional-commit branch prefixes as label aliases; run on node24 - #7

Merged
fenech merged 2 commits into
masterfrom
feature/branch-prefix-aliases
Oct 30, 2026
Merged

fenech merged 2 commits into
masterfrom
feature/branch-prefix-aliases

Conversation

@fenech

@fenech fenech commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Branches named with conventional-commit prefixes (feat/, fix/, docs/, …) failed the labeller check, because the prefix had to match a label name exactly.

Changes

  • Built-in alias map: feat→feature, fix/bug/hotfix→bugfix, doc/docs→documentation, perf→performance, tests→test, chore→internal.

  • Prefix matching is case-insensitive.

  • The failure message now lists the accepted labels and aliases.

  • Rebuilt dist/, which also bundles the dependency updates from fdb1f6a (they were never rebuilt into it).

  • action.yml runtime node12 → node24. Runners (2.338) already force it onto Node 24 with a deprecation warning.

No input changes, so consumers only need to bump the ref.

Testing

Ran dist/index.js against a local mock of the GitHub API with the standard label list:

  • feat/x, fix/x, Docs/x, chore/x → applied feature, bugfix, documentation, internal; check passes
  • feature/x → unchanged behaviour
  • wip/x, nobranch → check fails with the new message
  • Repeated feat/x and wip/x under Node 24.22: same results

Rollout

After merge: tag v1.2, then bump @v1.1 → @v1.2 in the consumer repos.

🤖 Generated with Claude Code

Branches like feat/, fix/, docs/, perf/ and chore/ failed the check
because the prefix had to equal a label name. Map common synonyms to
their canonical label and match prefixes case-insensitively. The
failure message now lists the accepted labels and aliases.

dist/ is rebuilt, which also picks up the dependency updates from
fdb1f6a that were never bundled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fenech fenech added the feature New features label Oct 30, 2026
Runners (2.338) already force the node12 action onto Node 24 with a
deprecation warning; declare it explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fenech fenech changed the title Accept conventional-commit branch prefixes as label aliases Accept conventional-commit branch prefixes as label aliases; run on node24 Oct 30, 2026
@fenech
fenech merged commit 90f7298 into master Oct 30, 2026
1 check passed
@fenech
fenech deleted the feature/branch-prefix-aliases branch October 30, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants