You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add parsing of the current git branch (fails gracefully) to extract a
prefixed ticket ID from the branch name
- Add output to the CLI to make user aware of unfinished TODOs for their
current branch
The tool automatically detects your current git branch and extracts ticket IDs that match your configured Jira prefixes. When TODOs reference the current branch's ticket, they are displayed separately as informational warnings (yellow ⚠️) rather than violations (red ❌).
107
+
108
+
#### Checking All Files (Including Untouched)
109
+
110
+
By default, pre-commit only runs on modified files. To catch branch-specific TODOs in files that haven't been changed, configure the hook to **always run**:
111
+
112
+
#### Complete Branch Tracking Configuration
113
+
114
+
For full branch-specific TODO tracking, use both verbose and always_run:
- TODOs with `MYJIRA-123` will be shown as warnings, not violations
130
+
131
+
**Note:** Branch detection messages are only shown in verbose mode or when there are issues detecting the branch.
132
+
76
133
### Alert Without Blocking
77
134
78
135
Alert developers to dangling TODOs without blocking commits. When using `--succeed-always`, the hook will always return exit code 0 (success), but by default pre-commit hides output from successful hooks. To ensure TODO violations are still visible, you should configure verbose output:
79
136
80
-
**Recommended: Always show output (persistent configuration)**
137
+
**Recommended: Always show output with branch tracking**
0 commit comments