{"action":"created","comment":{"url":"https://api.github.com/repos/chef/omnibus/pulls/comments/25939807","id":25939807,"diff_hunk":"@@ -0,0 +1,53 @@\n+#\n+# Copyright 2015 Chef Software, Inc.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+require 'mixlib/versioning'\n+\n+module Omnibus\n+  class SemanticVersion\n+    def initialize(version_string)\n+      @prefix = if version_string =~ /^v/\n+                  \"v\"\n+                else\n+                  \"\"\n+                end\n+      @version = Mixlib::Versioning.parse(version_string.gsub(/^v/, \"\"))","path":"lib/omnibus/semantic_version.rb","position":29,"original_position":27,"commit_id":"8d6762d2bba5a05af16e65551104c846722ddb7c","original_commit_id":"f08a44e82fefccff72697ef5304f710426f05d30","user":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-03-06T11:42:06Z","updated_at":"2015-03-06T11:42:06Z","html_url":"https://github.com/chef/omnibus/pull/439#discussion_r25939807","pull_request_url":"https://api.github.com/repos/chef/omnibus/pulls/439","_links":{"self":{"href":"https://api.github.com/repos/chef/omnibus/pulls/comments/25939807"},"html":{"href":"https://github.com/chef/omnibus/pull/439#discussion_r25939807"},"pull_request":{"href":"https://api.github.com/repos/chef/omnibus/pulls/439"}}},"pull_request":{"url":"https://api.github.com/repos/chef/omnibus/pulls/439","id":30384074,"html_url":"https://github.com/chef/omnibus/pull/439","diff_url":"https://github.com/chef/omnibus/pull/439.diff","patch_url":"https://github.com/chef/omnibus/pull/439.patch","issue_url":"https://api.github.com/repos/chef/omnibus/issues/439","number":439,"state":"open","locked":false,"title":"WIP Add `omnibus generate changelog` command","user":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"body":"ChangeLog-Entry: A new `omnibus generate changelog` command generates\r\nan opinionated CHANGELOG entry based on metadata in commit messages.","created_at":"2015-03-03T15:40:27Z","updated_at":"2015-03-06T11:42:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"604d5897ce004f093d69642c32467595b0476479","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/omnibus/pulls/439/commits","review_comments_url":"https://api.github.com/repos/chef/omnibus/pulls/439/comments","review_comment_url":"https://api.github.com/repos/chef/omnibus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/omnibus/issues/439/comments","statuses_url":"https://api.github.com/repos/chef/omnibus/statuses/8d6762d2bba5a05af16e65551104c846722ddb7c","head":{"label":"chef:ssd/changelog","ref":"ssd/changelog","sha":"8d6762d2bba5a05af16e65551104c846722ddb7c","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":3444030,"name":"omnibus","full_name":"chef/omnibus","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/omnibus","description":"Easily create full-stack installers for your project across a variety of platforms.","fork":false,"url":"https://api.github.com/repos/chef/omnibus","forks_url":"https://api.github.com/repos/chef/omnibus/forks","keys_url":"https://api.github.com/repos/chef/omnibus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/omnibus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/omnibus/teams","hooks_url":"https://api.github.com/repos/chef/omnibus/hooks","issue_events_url":"https://api.github.com/repos/chef/omnibus/issues/events{/number}","events_url":"https://api.github.com/repos/chef/omnibus/events","assignees_url":"https://api.github.com/repos/chef/omnibus/assignees{/user}","branches_url":"https://api.github.com/repos/chef/omnibus/branches{/branch}","tags_url":"https://api.github.com/repos/chef/omnibus/tags","blobs_url":"https://api.github.com/repos/chef/omnibus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/omnibus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/omnibus/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/omnibus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/omnibus/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/omnibus/languages","stargazers_url":"https://api.github.com/repos/chef/omnibus/stargazers","contributors_url":"https://api.github.com/repos/chef/omnibus/contributors","subscribers_url":"https://api.github.com/repos/chef/omnibus/subscribers","subscription_url":"https://api.github.com/repos/chef/omnibus/subscription","commits_url":"https://api.github.com/repos/chef/omnibus/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/omnibus/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/omnibus/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/omnibus/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/omnibus/contents/{+path}","compare_url":"https://api.github.com/repos/chef/omnibus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/omnibus/merges","archive_url":"https://api.github.com/repos/chef/omnibus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/omnibus/downloads","issues_url":"https://api.github.com/repos/chef/omnibus/issues{/number}","pulls_url":"https://api.github.com/repos/chef/omnibus/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/omnibus/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/omnibus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/omnibus/labels{/name}","releases_url":"https://api.github.com/repos/chef/omnibus/releases{/id}","created_at":"2012-02-14T21:15:35Z","updated_at":"2015-03-06T11:34:42Z","pushed_at":"2015-03-06T11:41:10Z","git_url":"git://github.com/chef/omnibus.git","ssh_url":"git@github.com:chef/omnibus.git","clone_url":"https://github.com/chef/omnibus.git","svn_url":"https://github.com/chef/omnibus","homepage":"","size":36741,"stargazers_count":421,"watchers_count":421,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":22,"forks":135,"open_issues":22,"watchers":421,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"29737f3d15d6fdd2301c9670251ab57d7a89a979","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":3444030,"name":"omnibus","full_name":"chef/omnibus","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/omnibus","description":"Easily create full-stack installers for your project across a variety of platforms.","fork":false,"url":"https://api.github.com/repos/chef/omnibus","forks_url":"https://api.github.com/repos/chef/omnibus/forks","keys_url":"https://api.github.com/repos/chef/omnibus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/omnibus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/omnibus/teams","hooks_url":"https://api.github.com/repos/chef/omnibus/hooks","issue_events_url":"https://api.github.com/repos/chef/omnibus/issues/events{/number}","events_url":"https://api.github.com/repos/chef/omnibus/events","assignees_url":"https://api.github.com/repos/chef/omnibus/assignees{/user}","branches_url":"https://api.github.com/repos/chef/omnibus/branches{/branch}","tags_url":"https://api.github.com/repos/chef/omnibus/tags","blobs_url":"https://api.github.com/repos/chef/omnibus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/omnibus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/omnibus/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/omnibus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/omnibus/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/omnibus/languages","stargazers_url":"https://api.github.com/repos/chef/omnibus/stargazers","contributors_url":"https://api.github.com/repos/chef/omnibus/contributors","subscribers_url":"https://api.github.com/repos/chef/omnibus/subscribers","subscription_url":"https://api.github.com/repos/chef/omnibus/subscription","commits_url":"https://api.github.com/repos/chef/omnibus/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/omnibus/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/omnibus/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/omnibus/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/omnibus/contents/{+path}","compare_url":"https://api.github.com/repos/chef/omnibus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/omnibus/merges","archive_url":"https://api.github.com/repos/chef/omnibus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/omnibus/downloads","issues_url":"https://api.github.com/repos/chef/omnibus/issues{/number}","pulls_url":"https://api.github.com/repos/chef/omnibus/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/omnibus/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/omnibus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/omnibus/labels{/name}","releases_url":"https://api.github.com/repos/chef/omnibus/releases{/id}","created_at":"2012-02-14T21:15:35Z","updated_at":"2015-03-06T11:34:42Z","pushed_at":"2015-03-06T11:41:10Z","git_url":"git://github.com/chef/omnibus.git","ssh_url":"git@github.com:chef/omnibus.git","clone_url":"https://github.com/chef/omnibus.git","svn_url":"https://github.com/chef/omnibus","homepage":"","size":36741,"stargazers_count":421,"watchers_count":421,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":22,"forks":135,"open_issues":22,"watchers":421,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/omnibus/pulls/439"},"html":{"href":"https://github.com/chef/omnibus/pull/439"},"issue":{"href":"https://api.github.com/repos/chef/omnibus/issues/439"},"comments":{"href":"https://api.github.com/repos/chef/omnibus/issues/439/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/omnibus/pulls/439/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/omnibus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/omnibus/pulls/439/commits"},"statuses":{"href":"https://api.github.com/repos/chef/omnibus/statuses/8d6762d2bba5a05af16e65551104c846722ddb7c"}}}}