Skip to content

Recognize pkg.generated.mbti and pkg.mbti as MoonBit - #8367

Open
peter-jerry-ye wants to merge 1 commit into
github-linguist:mainfrom
peter-jerry-ye:codex/moonbit-interface-filenames
Open

peter-jerry-ye wants to merge 1 commit into
github-linguist:mainfrom
peter-jerry-ye:codex/moonbit-interface-filenames

Conversation

@peter-jerry-ye

@peter-jerry-ye peter-jerry-ye commented Nov 27, 2026 •

Copy link
Copy Markdown

Add pkg.generated.mbti and pkg.mbti to filenames in the existing MoonBit language entry, following the approach used for moon.mod and moon.pkg in #8196.

Description

moon info generates pkg.generated.mbti to describe a package’s public interface. A virtual package uses pkg.mbti to declare the interface its implementations must provide. Both files contain MoonBit interface declarations and can use the existing source.moonbit grammar. Virtual package documentation

pkg.mbti falls below the filename usage threshold on its own. Given its specific role in virtual packages, would you be willing to accept it alongside pkg.generated.mbti? We’re happy to narrow the PR to pkg.generated.mbti if you prefer to assess each filename independently.

Checklist:

  • I am adding a new extension to a language. This is a filename-only request. The two exact filenames are listed below, and registering the .mbti extension is outside the scope of the change.
    • The new extension is used in hundreds of repositories on GitHub.com
      • Search results for each filename are linked below. The counts are files returned by the GitHub REST code search API on November 27, 2026. The links use exact filename matches and exclude forks.
      • pkg.generated.mbti — 17.6k files. GitHub Code Search
      • pkg.mbti — 59 files. GitHub Code Search
    • I have included a real-world usage sample for all extensions added in this PR:
    • I have included a change to the heuristics to distinguish my language from others using the same extension.
      • Not applicable. Both additions use exact filename matching.

@peter-jerry-ye
peter-jerry-ye marked this pull request as ready for review November 27, 2026 03:56
@peter-jerry-ye
peter-jerry-ye requested a review from a team as a code owner November 27, 2026 03:56
@lildude

lildude commented Nov 27, 2026

Copy link
Copy Markdown
Member

pkg.mbti falls below the filename usage threshold on its own.

All filenames in a PR must meet the usage requirements as we evaluate them in isolation. This will hold up this PR.

As for the other filename, given that it's generated, you probably want to update this PR so that linguist marks these files as generated too and save having to do it later in another PR.

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.

2 participants