Skip to content

Commit 88bf8f4

Browse files
cahaselerclaude
andcommitted
fix: update branch protection message to reference /cc-track:specify
Replace outdated "Enter planning mode" suggestion with current workflow: - Use /cc-track:specify to start a new task - Or create a feature branch manually 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9b18416 commit 88bf8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/pre-tool-validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Note: If you genuinely need historical ${yearCheck.detectedYear} information, tr
335335
hookSpecificOutput: {
336336
hookEventName: 'PreToolUse',
337337
permissionDecision: 'deny' as const,
338-
permissionDecisionReason: `🚫 Branch Protection: Cannot edit files on protected branch '${currentBranch}'\n\nYou are currently on a protected branch. To make changes:\n1. Enter planning mode to start a new task (which will create a feature branch)\n2. Or switch to an existing feature branch if you're continuing work\n\n${allowGitignored ? 'Note: Edits to gitignored files are allowed on protected branches.' : ''}`,
338+
permissionDecisionReason: `🚫 Branch Protection: Cannot edit files on protected branch '${currentBranch}'\n\nYou are currently on a protected branch. To make changes:\n1. Use /cc-track:specify to start a new task (creates a feature branch automatically)\n2. Or create a feature branch manually: git checkout -b feature/your-feature-name\n\n${allowGitignored ? 'Note: Edits to gitignored files are allowed on protected branches.' : ''}`,
339339
},
340340
};
341341
}

0 commit comments

Comments
 (0)