-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat(hooks): Claude Code hook to intercept git commands and verify branch #680
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
agent-retrospectiveLearning extraction agentLearning extraction agentarea-infrastructureBuild, CI/CD, configurationBuild, CI/CD, configurationarea-workflowsGitHub Actions workflowsGitHub Actions workflowsautomationAutomated workflows and processesAutomated workflows and processesdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestpriority:P1Important: Affects user experience significantly, high business valueImportant: Affects user experience significantly, high business value
Milestone
Metadata
Metadata
Assignees
Labels
agent-retrospectiveLearning extraction agentLearning extraction agentarea-infrastructureBuild, CI/CD, configurationBuild, CI/CD, configurationarea-workflowsGitHub Actions workflowsGitHub Actions workflowsautomationAutomated workflows and processesAutomated workflows and processesdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestpriority:P1Important: Affects user experience significantly, high business valueImportant: Affects user experience significantly, high business value
Summary
Create a Claude Code hook that intercepts git commands (commit, push, reset) and verifies the current branch before allowing the operation.
Context
From retrospective analysis in PR #669, commits were made to wrong branches. A Claude Code hook could intercept git commands and validate branch state automatically.
Acceptance Criteria
.claude/settings.jsonor equivalentgit commit,git push,git resetgit branch --show-currentand logs to contextTechnical Notes
References
.agents/retrospective/2025-12-31-pr-co-mingling-analysis.md