Skip to content

Instantly share code, notes, and snippets.

@imkarimkarim
Last active December 13, 2023 04:29
Show Gist options
  • Save imkarimkarim/6d5da84be3e0cea60a0c1adaf581f243 to your computer and use it in GitHub Desktop.
Save imkarimkarim/6d5da84be3e0cea60a0c1adaf581f243 to your computer and use it in GitHub Desktop.
git commit conventions:
https://github.com/conventional-changelog/commitlint#what-is-commitlint
https://www.conventionalcommits.org/en/v1.0.0/#specification
# examples
type(scope?): subject
feat: add espanol lanugage
fix(ui): bug in submit button
feat!: breaking change / feat(api)!: rework API
chore(deps): update a toast message
build: "update webpack configuration for production build" / "add a new webpack plugin for code optimization"
chore: "update dependencies in package.json" / "update typescript version in project"
ci: "add CircleCI configuration file" / "add Github actions for running tests"
docs: "add documentation for new feature" / "improve documentation for working with services"
feat: "add new user registration form" / "add new feature to filter data in table"
fix: "fix issue with login form validation" / "fix a bug with pagination not working"
perf: "optimize component rendering performance" / "improve performance of data loading from API"
refactor: "refactor component to use hooks" / "rename variables for better code readability"
revert: "previous commit that added new feature" / "previous commit that introduced a breaking change"
style: "update CSS for button component" / "update font for headings"
test: "add unit tests for login component" / "add e2e tests for user flow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment