-
Notifications
You must be signed in to change notification settings - Fork 10
chore: add commitlint for conventional commit messages #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| bunx commitlint --edit "$1" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,10 +33,31 @@ Thank you for your interest in contributing! | |||||||||||||||||||||||||||
| | `bun run nitrogen` | Run Nitrogen codegen (when specs are ready) | | ||||||||||||||||||||||||||||
| | `bun run format` | Format all files with Prettier | | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ## Commit messages | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| This project uses [Conventional Commits](https://www.conventionalcommits.org/). Commit messages are validated locally via Husky and on pull requests in CI. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| Format: | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
| <type>[optional scope]: <description> | ||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| Common types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| Examples: | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
| feat: add marker clustering support | ||||||||||||||||||||||||||||
| fix(ios): correct viewport filter for wrapped longitudes | ||||||||||||||||||||||||||||
| chore: add commitlint configuration | ||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Add fence languages so the docs stop tripping markdownlint. Both new fenced blocks are missing a language tag. Use Suggested fix-```
+```text
<type>[optional scope]: <description>@@ 📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 42-42: Fenced code blocks should have a language specified (MD040, fenced-code-language) [warning] 50-50: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ## Pull request guidelines | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| - Keep changes focused and well-scoped. | ||||||||||||||||||||||||||||
| - Run `bun run lint`, `bun run typecheck`, and `bun run build` before opening a PR. | ||||||||||||||||||||||||||||
| - Use conventional commit messages for all commits in the PR. | ||||||||||||||||||||||||||||
| - Follow existing naming conventions and avoid `any` in TypeScript. | ||||||||||||||||||||||||||||
| - Update documentation when changing public APIs. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major
🧩 Analysis chain
🏁 Script executed:
Repository: gmi-software/react-native-nitro-maps
Length of output: 1874
🏁 Script executed:
Repository: gmi-software/react-native-nitro-maps
Length of output: 1874
🏁 Script executed:
Repository: gmi-software/react-native-nitro-maps
Length of output: 1874
🏁 Script executed:
Repository: gmi-software/react-native-nitro-maps
Length of output: 1874
Pin these Actions to full SHAs.
actions/checkout@v4andoven-sh/setup-bun@v2are still mutable tags, so this workflow keeps violating the SHA-pinning policy until bothuses:entries are locked down.🧰 Tools
🪛 zizmor (1.26.1)
[error] 15-15: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 20-20: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools