Skip to content

fix(meow): match /meow case-insensitively like every other command - #453

Merged
jeefy merged 1 commit into
cncf:mainfrom
jeefy:fix/meow-case-insensitive
Oct 12, 2026
Merged

jeefy merged 1 commit into
cncf:mainfrom
jeefy:fix/meow-case-insensitive

Conversation

@jeefy

@jeefy jeefy commented Oct 12, 2026

Copy link
Copy Markdown
Member

docs/commands.md says commands are case-insensitive, and handleIssueComment does dispatch /MEOW to the meow handler. But meow.ts then re-checks the line against its own case-sensitive pattern, so /MEOW and /Meow were silently ignored. Found while reviewing #397.

Fix: add the i flag to meowCommand (src/issueComment/meow.ts:12). The pattern still requires the line to be exactly /meow, so /meowvie, /meow cat and mentions are still ignored.

Tests: a new unit case for /MEOW and /Meow posts the image; it fails on main and passes with the fix.

  • Full suite: 2076 pass, 100% lines; lint clean.
  • dist/ matches a fresh npm run pack.
  • e2e: 452 pass.

docs/commands.md says commands are case-insensitive, and handleIssueComment dispatches /MEOW to the meow handler, but meow.ts re-checked the line with a case-sensitive pattern, so /MEOW and /Meow were silently dropped. Add the i flag and unit-test both spellings.

Signed-off-by: Jeffrey Sica <me@jeefy.dev>
@jeefy
jeefy requested a review from jpmcb as a code owner October 12, 2026 00:59
@jeefy
jeefy merged commit 7a5872e into cncf:main Oct 12, 2026
7 checks passed
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