{"action":"opened","issue":{"url":"https://api.github.com/repos/ldiqual/buildnumber.io/issues/2","labels_url":"https://api.github.com/repos/ldiqual/buildnumber.io/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ldiqual/buildnumber.io/issues/2/comments","events_url":"https://api.github.com/repos/ldiqual/buildnumber.io/issues/2/events","html_url":"https://github.com/ldiqual/buildnumber.io/issues/2","id":128076364,"number":2,"title":"Add way to get latest build number from a given build prefix","user":{"login":"zlalanne","id":571411,"avatar_url":"https://avatars.githubusercontent.com/u/571411?v=3","gravatar_id":"","url":"https://api.github.com/users/zlalanne","html_url":"https://github.com/zlalanne","followers_url":"https://api.github.com/users/zlalanne/followers","following_url":"https://api.github.com/users/zlalanne/following{/other_user}","gists_url":"https://api.github.com/users/zlalanne/gists{/gist_id}","starred_url":"https://api.github.com/users/zlalanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlalanne/subscriptions","organizations_url":"https://api.github.com/users/zlalanne/orgs","repos_url":"https://api.github.com/users/zlalanne/repos","events_url":"https://api.github.com/users/zlalanne/events{/privacy}","received_events_url":"https://api.github.com/users/zlalanne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T03:36:26Z","updated_at":"2016-01-22T03:36:26Z","closed_at":null,"body":"Would be nice to add a version prefix to the POST that could determine the correct build number to use.\r\n\r\nFor example:\r\nI start development on version 1.1.0 of my app. I make a few builds so I get:\r\n1.1.0.1\r\n1.1.0.2\r\n1.1.0.3\r\n\r\nNow I make a significant change so I bump the minor number. The build number should reset:\r\n1.1.1.1\r\n1.1.1.2\r\n1.1.1.3\r\n\r\nNoe let's say something critical happened in the 1.1.0 release and I need to go back and fix it. I should be able to request a new \"1.1.0\" build and receive a 4, so that the next version number is:\r\n1.1.0.4\r\n"}}