{"id":17172227,"url":"https://github.com/lucasconstantino/git-aliases-semantic-commits","last_synced_at":"2025-04-13T16:11:36.383Z","repository":{"id":57251119,"uuid":"237481205","full_name":"lucasconstantino/git-aliases-semantic-commits","owner":"lucasconstantino","description":"Git semantic commit local aliases installer","archived":false,"fork":false,"pushed_at":"2020-02-07T14:54:50.000Z","size":82,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T00:35:24.406Z","etag":null,"topics":["aliases","git","semantic-commits"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasconstantino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-31T17:28:52.000Z","updated_at":"2023-04-12T01:18:41.000Z","dependencies_parsed_at":"2022-08-24T16:52:01.168Z","dependency_job_id":null,"html_url":"https://github.com/lucasconstantino/git-aliases-semantic-commits","commit_stats":null,"previous_names":["lucasconstantino/git-semantic-commit-aliases","lucasconstantino/git-semantic-commits-aliases"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fgit-aliases-semantic-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fgit-aliases-semantic-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fgit-aliases-semantic-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fgit-aliases-semantic-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasconstantino","download_url":"https://codeload.github.com/lucasconstantino/git-aliases-semantic-commits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741199,"owners_count":21154255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliases","git","semantic-commits"],"created_at":"2024-10-14T23:36:27.386Z","updated_at":"2025-04-13T16:11:36.362Z","avatar_url":"https://github.com/lucasconstantino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Semantic Commit Aliases\n\n:warning: not well tested, but should cause no big issue :)\n\n\u003e Git semantic commit local aliases installer, based on [semantic commit messages](https://seesparkbox.com/foundry/semantic_commit_messages) article.\n\n## Install\n\n```sh\nnpm install git-aliases-semantic-commits --save-dev\n```\n\nUse the new aliases:\n\n```sh\ngit chore 'message'       # same as `git commit -m 'chore: message'`\ngit cleanup 'message'     # same as `git commit -m 'cleanup: message'`\ngit docs 'message'        # same as `git commit -m 'docs: message'`\ngit feat 'message'        # same as `git commit -m 'feat: message'`\ngit fix 'message'         # same as `git commit -m 'fix: message'`\ngit localize 'message'    # same as `git commit -m 'localize: message'`\ngit refactor 'message'    # same as `git commit -m 'refactor: message'`\ngit style 'message'       # same as `git commit -m 'style: message'`\ngit test 'message'        # same as `git commit -m 'test: message'`\n```\n\n## Scopes\n\nIn many projects or repositories you might find some varying scopes for work being done - i.e. backend, frontend, etc. Scope your message using the `-s` parameter:\n\n```sh\ngit chore -s backend 'message' # same as `git commit -m 'chore(backend): message'`\n```\n\n### Automatic scopes\n\nThis package also allows for an opt-in automatic scope system, specially useful for monorepo projects (Lerna :heart:). To configure it, you need to add `semanticCommits.scope` strategy to your root `package.json`, i.e.:\n\n```json\n{\n  \"name\": \"root\",\n  \"version\": \"1.0.0\",\n  \"semanticCommits\": {\n    \"scope\": \"package.json\"\n  }\n}\n```\n\nThere are currently no other strategies available, but \"package.json\" one. This strategy will look upwards from committing file paths to find related `package.json` files and use their `name` field as scope.\n\n```\n├── package.json\n└── packages\n    ├── first\n    │   └── package.json\n    └── second\n        └── package.json\n```\n\nNow, whenever you use the semantic commit aliases this package provides for committing files in this repository, a few patterns will be found:\n\n- `chore: message`: when only files outside packages were changed;\n- `chore(first): message`: when only files inside _first_ were changed:\n- `chore(first, second): message`: when files in both _first_ and _second_ packages were changed;\n- `chore(@root, first): message`: when files in root and inside _first_ packages were changed.\n\nP.s.: you can still override the scope used by setting the `-s` parameter.\n\n## See also\n\n- [git-shared-aliases](https://github.com/lucasconstantino/git-shared-aliases) - Git aliases made available across your team\n- [husky](https://github.com/typicode/husky) - Git hooks made easy 🐶 woof!\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Fgit-aliases-semantic-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasconstantino%2Fgit-aliases-semantic-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Fgit-aliases-semantic-commits/lists"}