{"id":17472759,"url":"https://github.com/shinnn/is-unautosquashed-commit-message","last_synced_at":"2026-04-19T05:32:45.167Z","repository":{"id":57277676,"uuid":"78715247","full_name":"shinnn/is-unautosquashed-commit-message","owner":"shinnn","description":"Check if the value is a commit message that'll be melded into another by `git -i --autosquash`","archived":false,"fork":false,"pushed_at":"2019-05-26T09:57:52.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-29T03:01:41.798Z","etag":null,"topics":["autosqash","commit-message","git","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-12T06:20:58.000Z","updated_at":"2019-05-26T09:57:54.000Z","dependencies_parsed_at":"2022-08-31T00:02:01.859Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/is-unautosquashed-commit-message","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-unautosquashed-commit-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-unautosquashed-commit-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-unautosquashed-commit-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-unautosquashed-commit-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/is-unautosquashed-commit-message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991583,"owners_count":20706129,"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":["autosqash","commit-message","git","javascript"],"created_at":"2024-10-18T17:35:44.557Z","updated_at":"2025-10-25T20:14:09.658Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-unautosquashed-commit-message\n\n[![npm version](https://img.shields.io/npm/v/is-unautosquashed-commit-message.svg)](https://www.npmjs.com/package/is-unautosquashed-commit-message)\n[![Build Status](https://travis-ci.com/shinnn/is-unautosquashed-commit-message.svg?branch=master)](https://travis-ci.com/shinnn/is-unautosquashed-commit-message)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-unautosquashed-commit-message.svg)](https://coveralls.io/github/shinnn/is-unautosquashed-commit-message)\n\nCheck if a given value is a message of [Git](https://git-scm.com/) commit that'll be melded into another by [`git -i --autosquash`](https://git-scm.com/docs/git-rebase#git-rebase---autosquash):\n\n\u003e When the commit log message begins with \"squash! …​\" (or \"fixup! …​\"), and there is a commit whose title begins with the same …​, automatically modify the todo list of rebase -i so that the commit marked for squashing comes right after the commit to be modified, and change the action of the moved commit from `pick` to `squash` (or `fixup`).\n\n```javascript\nisUnautosquashedCommitMessage('Update README'); //=\u003e false\nisUnautosquashedCommitMessage('fixup! Update README'); //=\u003e true\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install is-unautosquashed-commit-message\n```\n\n## API\n\n```javascript\nimport isUnautosquashedCommitMessage from 'is-unautosquashed-commit-message';\n```\n\n### isUnautosquashedCommitMessage(*message*)\n\n*message*: any type (but always return `false` when non-string value is passed)  \nReturn: `boolean`\n\n```javascript\n// Returns `true`\nisUnautosquashedCommitMessage('fixup! add index.js');\nisUnautosquashedCommitMessage('squash!          use Set\\n\\ninstead of Array');\nisUnautosquashedCommitMessage(' fixup! bump version');\nisUnautosquashedCommitMessage('\\tsquash!\\n🔧');\n\n// Returns `false`\nisUnautosquashedCommitMessage('add index.js');\nisUnautosquashedCommitMessage('fixup!add index.js');\nisUnautosquashedCommitMessage('squash!');\nisUnautosquashedCommitMessage('fixup!                    ');\nisUnautosquashedCommitMessage(['this', 'is', 'a', 'non-string', 'value']);\nisUnautosquashedCommitMessage();\n```\n\n## License\n\n[MIT No Attribution](./LICENSE) © 2019 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-unautosquashed-commit-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fis-unautosquashed-commit-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-unautosquashed-commit-message/lists"}