Skip to main content

Practice · 1 of 3

Branch Classifier

CHALLENGE
Difficulty: intermediate+25 XP

Write classifyBranch(name) — branches follow <type>/<kebab-desc> where type ∈ feat|fix|chore|docs|refactor|test. Return "feature" for feat/fix branches, "maintenance" for chore/docs/test/refactor, and null for anything malformed (missing slash, bad type, spaces, uppercase).

Back to lesson: Practice: Branch Naming & Flow — Practice