{"action":"created","issue":{"url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/3","labels_url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/3/comments","events_url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/3/events","html_url":"https://github.com/aalmiray/clirr-gradle-plugin/issues/3","id":59642360,"number":3,"title":"Add heuristic to determine the baseline version automatically","user":{"login":"Flowdalic","id":432385,"avatar_url":"https://avatars.githubusercontent.com/u/432385?v=3","gravatar_id":"","url":"https://api.github.com/users/Flowdalic","html_url":"https://github.com/Flowdalic","followers_url":"https://api.github.com/users/Flowdalic/followers","following_url":"https://api.github.com/users/Flowdalic/following{/other_user}","gists_url":"https://api.github.com/users/Flowdalic/gists{/gist_id}","starred_url":"https://api.github.com/users/Flowdalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flowdalic/subscriptions","organizations_url":"https://api.github.com/users/Flowdalic/orgs","repos_url":"https://api.github.com/users/Flowdalic/repos","events_url":"https://api.github.com/users/Flowdalic/events{/privacy}","received_events_url":"https://api.github.com/users/Flowdalic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-03T13:38:56Z","updated_at":"2015-03-11T17:36:48Z","closed_at":null,"body":"It would be great if the plugin would automatically determine the baseline version automatically, so that I don't have to change it manually between releases.\r\n\r\nMy project only guarantees API compatibility between patchlevel releases (1.2.1, 1.2.3. 1.2.42, ...), so a simply heuristic could look like\r\n\r\n1. Remove the snapshot qualifier, i.e. `-SNAPSHOT-X`\r\n2. Remove all release qualifiers, i.e. `-alphaX`, `-betaX`, `-rcX`, where `X` is an arbitrary number of digits\r\n3. If the patchlevel number is \r\n  - `0`, then don't run clirr because there is no previous release to test against\r\n  - otherwise decrement the patchlevel by one and run clirr against that release"},"comment":{"url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/comments/78314253","html_url":"https://github.com/aalmiray/clirr-gradle-plugin/issues/3#issuecomment-78314253","issue_url":"https://api.github.com/repos/aalmiray/clirr-gradle-plugin/issues/3","id":78314253,"user":{"login":"aalmiray","id":13969,"avatar_url":"https://avatars.githubusercontent.com/u/13969?v=3","gravatar_id":"","url":"https://api.github.com/users/aalmiray","html_url":"https://github.com/aalmiray","followers_url":"https://api.github.com/users/aalmiray/followers","following_url":"https://api.github.com/users/aalmiray/following{/other_user}","gists_url":"https://api.github.com/users/aalmiray/gists{/gist_id}","starred_url":"https://api.github.com/users/aalmiray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalmiray/subscriptions","organizations_url":"https://api.github.com/users/aalmiray/orgs","repos_url":"https://api.github.com/users/aalmiray/repos","events_url":"https://api.github.com/users/aalmiray/events{/privacy}","received_events_url":"https://api.github.com/users/aalmiray/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T17:36:47Z","updated_at":"2015-03-11T17:36:47Z","body":"    2.0.0 => no run\r\n    2.0.4 => 2.0.3\r\n    2.1.0 => 2.0.0 (*)\r\n    2.1.3 => 2.1.2\r\n\r\n(*) I suppose if one would like to check 2.1.0-SNAPSHOT against 2.0.9 then the baseline has to be made explicit, right?"}}