{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/75","repository_url":"https://api.github.com/repos/pypa/setuptools_scm","labels_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/75/comments","events_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/75/events","html_url":"https://github.com/pypa/setuptools_scm/issues/75","id":126473640,"number":75,"title":"Use branch names to determine version bump","user":{"login":"sean-abbott","id":1402071,"avatar_url":"https://avatars3.githubusercontent.com/u/1402071?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-abbott","html_url":"https://github.com/sean-abbott","followers_url":"https://api.github.com/users/sean-abbott/followers","following_url":"https://api.github.com/users/sean-abbott/following{/other_user}","gists_url":"https://api.github.com/users/sean-abbott/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-abbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-abbott/subscriptions","organizations_url":"https://api.github.com/users/sean-abbott/orgs","repos_url":"https://api.github.com/users/sean-abbott/repos","events_url":"https://api.github.com/users/sean-abbott/events{/privacy}","received_events_url":"https://api.github.com/users/sean-abbott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-01-13T17:42:41Z","updated_at":"2017-04-12T14:58:20Z","closed_at":null,"body":"In order to fit seamlessly with a developers workflow,setuptools_scm should be (optionally) branch aware, and be able to use the branch prefix in order to determine which version part to bump.\n\nWhich branch prefixes equate to which version parts should be configurable.  For a sane default, I'm thinking:\n\nno prefix, unrecognized prefix, or bugfix/ == patch version bump (i.e., if master is tagged 1.0.0, and we branch bugfix/ISSUE-10), then the automatic version generation on that branch would become 1.0.1.dev{distance from branch}.n{revision hash}\n\nfeature/ == minor version bump (i.e., if master is tagged 1.0.0, and we branch feature/ISSUE-10, then the automatic version on that branch would be 1.1.0.dev{distance from branch}.n{revision hash}\n\nIn the configuration file, you might need to add configuration options for each version part.  i.e.\n\npatch_branch: comma separated list of branch prefixes that denote a patch bump\nminor_branch: comma separated list of branch prefixes that denote a minor bump\nmajor_branch: comma separated list of branch prefixes that denote a major version bump\n(and this config might also want a special option to denote \"any unrecognized branch prefix\" and \"no prefix\")\n\nThe one piece of this I haven't entirely figured out yet is releasing.  Either you might need a new setup.py action (i.e., python setup.py release) that performs similarly) to zest pre/release/post, but can handle the git merge and tag, or perhaps in order to use this feature you MUST use the version file so that when you merge you'll get the proper tag.  Haven't quite figured that out yet.\n\nThis issue is being raised as a result of discussion at zest releaser:  https://github.com/zestsoftware/zest.releaser/issues/121#issuecomment-171089841\n\nPlease let me know if you need more detail.\n"},"comment":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/comments/293604678","html_url":"https://github.com/pypa/setuptools_scm/issues/75#issuecomment-293604678","issue_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/75","id":293604678,"user":{"login":"sean-abbott","id":1402071,"avatar_url":"https://avatars3.githubusercontent.com/u/1402071?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-abbott","html_url":"https://github.com/sean-abbott","followers_url":"https://api.github.com/users/sean-abbott/followers","following_url":"https://api.github.com/users/sean-abbott/following{/other_user}","gists_url":"https://api.github.com/users/sean-abbott/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-abbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-abbott/subscriptions","organizations_url":"https://api.github.com/users/sean-abbott/orgs","repos_url":"https://api.github.com/users/sean-abbott/repos","events_url":"https://api.github.com/users/sean-abbott/events{/privacy}","received_events_url":"https://api.github.com/users/sean-abbott/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T14:58:20Z","updated_at":"2017-04-12T14:58:20Z","body":"Also, sorry I missed this until 6 months later.  Dangit."}}
{"actor":{"display_login":"sean-abbott"}}