Skip to content

fix(codeowners): correct webhooks owner handle and glob pattern - #508

Open
ketanyekale wants to merge 1 commit into
mainfrom
fix/codeowners-webhooks-pattern
Open

fix(codeowners): correct webhooks owner handle and glob pattern#508
ketanyekale wants to merge 1 commit into
mainfrom
fix/codeowners-webhooks-pattern

Conversation

@ketanyekale

Copy link
Copy Markdown
Member

The last rule in CODEOWNERS has two independent bugs, and as written it assigns no reviewer at all:

-/fundamentals/webhooks\*.mdx @siva
+/fundamentals/webhooks*.mdx @siva-cometchat

1. @siva is not the CometChat Siva

@siva resolves to a real account — but not the right one:

@siva @siva-cometchat
Name Satish Gunnu
Created 2008 2022
cometchat org member no yes
cometchat/docs collaborator no yes

Every other entry for this person uses @siva-cometchat, who already owns /rest-api/, /moderation/ and the API schema JSON files. Because @siva has no access to this repo, GitHub silently ignores the rule rather than erroring — so webhooks docs changes have never requested a review from anyone.

2. The wildcard is escaped, so it matches nothing

CODEOWNERS uses gitignore-style patterns, where \* escapes the asterisk into a literal * character. webhooks\*.mdx therefore matches only a file literally named webhooks*.mdx, and matches neither of the files that exist:

  • fundamentals/webhooks.mdx
  • fundamentals/webhooks-overview.mdx

Unescaped, /fundamentals/webhooks*.mdx matches both (verified against the actual filenames).

Either bug alone would disable the rule; together they made it doubly inert. After this change, webhooks documentation changes will request review from @siva-cometchat.

Note

This PR deliberately does not touch line 9 (- @jitvarpatil), which uses - instead of * as its pattern and so is a no-op as the intended repo-wide default owner. That is raised separately for a decision in #504.

🤖 Generated with Claude Code

Two bugs on the webhooks rule:

1. @Siva is not the CometChat Siva. It resolves to 'Satish Gunnu', an
   account created in 2008 that is neither a cometchat org member nor a
   collaborator on this repo, so GitHub silently drops the rule and no
   review is ever requested for webhooks docs. Every other entry for the
   same person uses @siva-cometchat, who owns /rest-api/ and the API
   schema files and is a verified org member and repo collaborator.

2. CODEOWNERS uses gitignore-style patterns, where a backslash escapes
   the asterisk into a literal '*' character. 'webhooks\*.mdx' therefore
   matched only a file literally named 'webhooks*.mdx' and matched
   neither fundamentals/webhooks.mdx nor
   fundamentals/webhooks-overview.mdx. Unescaped, it matches both.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 9, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Sep 9, 2026, 1:34 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant