{"id":17540342,"url":"https://github.com/bitwit/git-flow-bump-type","last_synced_at":"2025-10-06T14:13:20.075Z","repository":{"id":34176926,"uuid":"38026176","full_name":"bitwit/git-flow-bump-type","owner":"bitwit","description":"Determine the bump type based on git flow","archived":false,"fork":false,"pushed_at":"2015-06-26T14:16:28.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:37:39.864Z","etag":null,"topics":[],"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/bitwit.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":"2015-06-25T03:41:14.000Z","updated_at":"2015-06-25T03:43:36.000Z","dependencies_parsed_at":"2022-09-11T00:10:11.509Z","dependency_job_id":null,"html_url":"https://github.com/bitwit/git-flow-bump-type","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwit%2Fgit-flow-bump-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwit%2Fgit-flow-bump-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwit%2Fgit-flow-bump-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwit%2Fgit-flow-bump-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwit","download_url":"https://codeload.github.com/bitwit/git-flow-bump-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140574,"owners_count":20729797,"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":[],"created_at":"2024-10-20T22:23:29.887Z","updated_at":"2025-10-06T14:13:15.032Z","avatar_url":"https://github.com/bitwit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Git Flow Bump Type\n\u003e This determines the semver bump type (major, minor, patch) of your git project according to an opinionated git workflow.\n\n\u003e Set up your `major`, and `minor` branch names in the options, from which merges will trigger according versions and\nall other branch merges will be considered `patch`.\n\n\u003e Never concern yourself with what kind of bumping to give your next version again. Let your workflow\ndo the talking.\n\n## Getting Started\n\n```shell\nnpm install --save git-flow-bump-type\n```\n\nUse it from Node.js\n\n```js\nvar gitFlowBumpType = require('git-flow-bump-type');\ngitFlowBumpType({/* options */})\n.then(function (bumpTo) {\n  console.log('Bump to: ' bumpTo);\n  // Would log 'major', 'minor', or 'patch'\n});\n```\n\n### Options\n\n#### Defaults\n```js\ngitFlowBumpType({\n  masterOnly: true,\n  majorBranch: 'remotes/origin/release',\n  minorBranch: 'remotes/origin/develop'\n});\n```\n\n### options.masterOnly - Boolean\nFail to determine a bump type if you aren't currently checked out on master\nIf you determine versions from a branch other than `master`, make this false\n\n### options.majorBranch\nThe branch that should contain the current commit if a Major bump\n\n### options.minorBranch\nThe branch that should contain the current commit if a Major bump\n\n### How it is intended to work\n\nThere are a few assumptions being made when using this module:\n\n1. The commit you are determining a bump for has been merged to `master` and pushed to `origin`\n2. You are trying to use automation, such as a continuous delivery server, to bump for you. Where only an individual commit is being examined and not all the code can be expected to be local.\n\nIf that's not the case and you want to determine bumps from your local repository, simply override the defaults to \n```\n{\n  majorBranch: 'release', //or whatever you call it\n  minorBranch: 'develop'\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwit%2Fgit-flow-bump-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwit%2Fgit-flow-bump-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwit%2Fgit-flow-bump-type/lists"}