Skip to content

fix: improve git commit/push detection regex patterns#9

Merged
htekdev merged 1 commit into
mainfrom
fix/git-detection-regex
Feb 26, 2026
Merged

fix: improve git commit/push detection regex patterns#9
htekdev merged 1 commit into
mainfrom
fix/git-detection-regex

Conversation

@htekdev
Copy link
Copy Markdown
Owner

@htekdev htekdev commented Feb 26, 2026

Changed patterns from strict \bgit\s+(commit|ci)\b to flexible git\b.*\bcommit\b

The new pattern handles git commands with flags between git and the subcommand:

  • git -C /path commit -m 'msg'
  • git --no-pager commit
  • git -c core.editor=vim commit

This fixes the issue where commits with git flags weren't triggering commit workflows.

Changed patterns from strict \bgit\s+(commit|ci)\b to flexible git\b.*\bcommit\b

The new pattern handles git commands with flags between git and the subcommand:
- git -C /path commit -m 'msg'
- git --no-pager commit
- git -c core.editor=vim commit

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@htekdev htekdev merged commit 6935623 into main Feb 26, 2026
3 checks passed
@htekdev htekdev deleted the fix/git-detection-regex branch February 26, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant