fix: select default init template by extension - #2637
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a533550cbb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
a533550 to
50f1c05
Compare
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
50f1c05 to
6daed77
Compare
Summary
Fixes #2635.
When
jbang initis used without an explicit template, JBang now selects an availablehello.<extension>template matching the requested file extension.For example:
now uses the built-in
hello.kttemplate instead of selecting the Javahellotemplate and failing with:The existing Java template remains the fallback for
.javaand extensionless filenames. Explicit template selection and extension validation remain unchanged.Changes
jbang init hello.kt.Verification