Commit 17148eb
fixes #199 - Add support for exempting i18n commits from Redmine validation
Add simple i18n commit exemption to allow translation commits to bypass
Redmine validation requirements while maintaining validation for regular commits.
Implementation:
- Add hardcoded regex pattern for i18n commits (^i18n\s*- case insensitive)
- Use compiled regex for performance
- Add is_exempt() method to Commit class for clean encapsulation
- Integrate exemption check into existing validation logic
This allows commits like "i18n - Update Japanese translations" to pass
validation without requiring Redmine issue references, addressing the
workflow issue discussed in theforeman/theforeman-rel-eng#519.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent c0ca014 commit 17148eb
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | | - | |
| 222 | + | |
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
| |||
0 commit comments