Skip to content

test(hooks): Test uppercase slugs apart from the chore/ digit rule - #186

Merged
mpaulosky merged 1 commit into
mainfrom
chore/hook-test-uppercase
Sep 30, 2026
Merged

mpaulosky merged 1 commit into
mainfrom
chore/hook-test-uppercase

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Summary

The branch-standard tests (#182) used chore/7-Upper as the uppercase case, but the hook refuses it for its leading digit anyway, so it never tested the lowercase rule on its own. Copilot caught this in the same test's port to mpaulosky/atelier-store#92. It's replaced by feature/9-Upper and chore/tidy-Up, which each break only the lowercase rule, while chore/7-cleanup still covers the digit-leading one.

Testing

  • pre-push.test.sh: 48 passed, 0 failed.
  • With the hook changed to allow uppercase, the two new cases fail (46 passed, 2 failed), so they test the rule on their own.
  • shellcheck is clean, and the pre-push gate passed.

Refs #144

🤖 Generated with Claude Code

chore/7-Upper was refused for its leading digit, so it never tested the
lowercase rule on its own. feature/9-Upper and chore/tidy-Up do; a hook
that allowed uppercase fails both. Found by review of the same test's port
to mpaulosky/atelier-store#92.

Refs #144

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 04:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The new cases accurately isolate lowercase-slug enforcement without reducing existing coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Strengthens pre-push branch-name tests so uppercase slug validation is isolated from other naming rules.

Changes:

  • Adds independent uppercase tests for feature and chore branches.
  • Retains separate digit-leading chore coverage.
File Description
.github/​hooks/​tests/​pre-push.test.sh Refines invalid branch-name test cases.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.40%. Comparing base (3c56745) to head (5a9adf4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage   85.40%   85.40%           
=======================================
  Files          77       77           
  Lines        1596     1596           
  Branches      150      150           
=======================================
  Hits         1363     1363           
  Misses        189      189           
  Partials       44       44           

@github-actions

Copy link
Copy Markdown
Contributor

Test Results Summary

483 tests  ±0   483 ✅ ±0   18s ⏱️ +4s
  9 suites ±0     0 💤 ±0 
  9 files   ±0     0 ❌ ±0 

Results for commit 5a9adf4. ± Comparison against base commit 3c56745.

@mpaulosky
mpaulosky merged commit a174b52 into main Sep 30, 2026
30 checks passed
@mpaulosky
mpaulosky deleted the chore/hook-test-uppercase branch September 30, 2026 04:49
mpaulosky added a commit that referenced this pull request Sep 30, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants