{"action":"created","comment":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments/119741849","pull_request_review_id":41650943,"id":119741849,"diff_hunk":"@@ -144,6 +221,30 @@ namespace :release do\n     exit 2 unless (STDIN.gets.chomp == 'Y')\n   end\n \n+  desc 'Updates metadata for the new release'\n+  task :update_metadata do\n+    print \"New version of Sourcery in sematic format [x.y.z]? \"\n+    new_version = STDIN.gets.chomp\n+    unless new_version =~ /^\\d+\\.\\d+\\.\\d+$/ then\n+      print \"Please set version following the semantic format http://semver.org/\\n\"\n+      exit 3\n+    end\n+\n+    print_info \"Updating metadata for #{new_version} release\\n\"\n+\n+    # Replace master with the new release version in CHANGELOG.md\n+    system(%Q{sed -i '' -e 's/## Master/## #{new_version}/' CHANGELOG.md})\n+\n+    # Update podspec version\n+    podspec_update_version(new_version)\n+\n+    # Update project version\n+    project_update_version(new_version)\n+\n+    print \"Now review and type [Y/n] to commit or cancel the changes. \"\n+    manual_commit([\"CHANGELOG.md\", \"Sourcery.podspec\", \"Sourcery.xcodeproj/project.pbxproj\"], \"docs: update metadata for #{new_version} release\")","path":"Rakefile","position":null,"original_position":155,"commit_id":"56e21f74829cb90177e5ed625a413dec2810d408","original_commit_id":"3ced05c2054bdfd8c6cf9f9affd11b05409a6b3f","user":{"login":"Antondomashnev","id":2076088,"avatar_url":"https://avatars3.githubusercontent.com/u/2076088?v=3","gravatar_id":"","url":"https://api.github.com/users/Antondomashnev","html_url":"https://github.com/Antondomashnev","followers_url":"https://api.github.com/users/Antondomashnev/followers","following_url":"https://api.github.com/users/Antondomashnev/following{/other_user}","gists_url":"https://api.github.com/users/Antondomashnev/gists{/gist_id}","starred_url":"https://api.github.com/users/Antondomashnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antondomashnev/subscriptions","organizations_url":"https://api.github.com/users/Antondomashnev/orgs","repos_url":"https://api.github.com/users/Antondomashnev/repos","events_url":"https://api.github.com/users/Antondomashnev/events{/privacy}","received_events_url":"https://api.github.com/users/Antondomashnev/received_events","type":"User","site_admin":false},"body":"Yes, you're right. Added in 56e21f7","created_at":"2017-06-01T22:10:13Z","updated_at":"2017-06-01T22:10:13Z","html_url":"https://github.com/krzysztofzablocki/Sourcery/pull/329#discussion_r119741849","pull_request_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329","_links":{"self":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments/119741849"},"html":{"href":"https://github.com/krzysztofzablocki/Sourcery/pull/329#discussion_r119741849"},"pull_request":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329"}}},"pull_request":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329","id":122719682,"html_url":"https://github.com/krzysztofzablocki/Sourcery/pull/329","diff_url":"https://github.com/krzysztofzablocki/Sourcery/pull/329.diff","patch_url":"https://github.com/krzysztofzablocki/Sourcery/pull/329.patch","issue_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/329","number":329,"state":"open","locked":false,"title":"First draft of releasing doc;","user":{"login":"Antondomashnev","id":2076088,"avatar_url":"https://avatars3.githubusercontent.com/u/2076088?v=3","gravatar_id":"","url":"https://api.github.com/users/Antondomashnev","html_url":"https://github.com/Antondomashnev","followers_url":"https://api.github.com/users/Antondomashnev/followers","following_url":"https://api.github.com/users/Antondomashnev/following{/other_user}","gists_url":"https://api.github.com/users/Antondomashnev/gists{/gist_id}","starred_url":"https://api.github.com/users/Antondomashnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antondomashnev/subscriptions","organizations_url":"https://api.github.com/users/Antondomashnev/orgs","repos_url":"https://api.github.com/users/Antondomashnev/repos","events_url":"https://api.github.com/users/Antondomashnev/events{/privacy}","received_events_url":"https://api.github.com/users/Antondomashnev/received_events","type":"User","site_admin":false},"body":"This is the first draft of the idea of `RELEASING.md` referenced in #280.\r\nI think the flow is pretty straightforward except with the case of api token that we use in Rakefile:\r\n```\r\nreq.basic_auth 'krzysztofzablocki', File.read('.apitoken').chomp\r\n```\r\n\r\nI think all collaborators with the rights to release can have `.apitoken` and `.githubuser` files locally that Sourcery can use to be able to make requests to GitHub.\r\n\r\nAs the next step, I would like to think which steps we can easily automate with rake tasks or just shell scripts.","created_at":"2017-05-26T21:02:40Z","updated_at":"2017-06-01T22:10:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48a332b6dba56d44fefadf1263fbf3bbe27b64e5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329/commits","review_comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329/comments","review_comment_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/329/comments","statuses_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/56e21f74829cb90177e5ed625a413dec2810d408","head":{"label":"Antondomashnev:releasing_document","ref":"releasing_document","sha":"56e21f74829cb90177e5ed625a413dec2810d408","user":{"login":"Antondomashnev","id":2076088,"avatar_url":"https://avatars3.githubusercontent.com/u/2076088?v=3","gravatar_id":"","url":"https://api.github.com/users/Antondomashnev","html_url":"https://github.com/Antondomashnev","followers_url":"https://api.github.com/users/Antondomashnev/followers","following_url":"https://api.github.com/users/Antondomashnev/following{/other_user}","gists_url":"https://api.github.com/users/Antondomashnev/gists{/gist_id}","starred_url":"https://api.github.com/users/Antondomashnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antondomashnev/subscriptions","organizations_url":"https://api.github.com/users/Antondomashnev/orgs","repos_url":"https://api.github.com/users/Antondomashnev/repos","events_url":"https://api.github.com/users/Antondomashnev/events{/privacy}","received_events_url":"https://api.github.com/users/Antondomashnev/received_events","type":"User","site_admin":false},"repo":{"id":84121558,"name":"Sourcery","full_name":"Antondomashnev/Sourcery","owner":{"login":"Antondomashnev","id":2076088,"avatar_url":"https://avatars3.githubusercontent.com/u/2076088?v=3","gravatar_id":"","url":"https://api.github.com/users/Antondomashnev","html_url":"https://github.com/Antondomashnev","followers_url":"https://api.github.com/users/Antondomashnev/followers","following_url":"https://api.github.com/users/Antondomashnev/following{/other_user}","gists_url":"https://api.github.com/users/Antondomashnev/gists{/gist_id}","starred_url":"https://api.github.com/users/Antondomashnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antondomashnev/subscriptions","organizations_url":"https://api.github.com/users/Antondomashnev/orgs","repos_url":"https://api.github.com/users/Antondomashnev/repos","events_url":"https://api.github.com/users/Antondomashnev/events{/privacy}","received_events_url":"https://api.github.com/users/Antondomashnev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Antondomashnev/Sourcery","description":"Meta-programming for Swift, stop writing boilerplate code.","fork":true,"url":"https://api.github.com/repos/Antondomashnev/Sourcery","forks_url":"https://api.github.com/repos/Antondomashnev/Sourcery/forks","keys_url":"https://api.github.com/repos/Antondomashnev/Sourcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Antondomashnev/Sourcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Antondomashnev/Sourcery/teams","hooks_url":"https://api.github.com/repos/Antondomashnev/Sourcery/hooks","issue_events_url":"https://api.github.com/repos/Antondomashnev/Sourcery/issues/events{/number}","events_url":"https://api.github.com/repos/Antondomashnev/Sourcery/events","assignees_url":"https://api.github.com/repos/Antondomashnev/Sourcery/assignees{/user}","branches_url":"https://api.github.com/repos/Antondomashnev/Sourcery/branches{/branch}","tags_url":"https://api.github.com/repos/Antondomashnev/Sourcery/tags","blobs_url":"https://api.github.com/repos/Antondomashnev/Sourcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Antondomashnev/Sourcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Antondomashnev/Sourcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Antondomashnev/Sourcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Antondomashnev/Sourcery/statuses/{sha}","languages_url":"https://api.github.com/repos/Antondomashnev/Sourcery/languages","stargazers_url":"https://api.github.com/repos/Antondomashnev/Sourcery/stargazers","contributors_url":"https://api.github.com/repos/Antondomashnev/Sourcery/contributors","subscribers_url":"https://api.github.com/repos/Antondomashnev/Sourcery/subscribers","subscription_url":"https://api.github.com/repos/Antondomashnev/Sourcery/subscription","commits_url":"https://api.github.com/repos/Antondomashnev/Sourcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Antondomashnev/Sourcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Antondomashnev/Sourcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Antondomashnev/Sourcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Antondomashnev/Sourcery/contents/{+path}","compare_url":"https://api.github.com/repos/Antondomashnev/Sourcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Antondomashnev/Sourcery/merges","archive_url":"https://api.github.com/repos/Antondomashnev/Sourcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Antondomashnev/Sourcery/downloads","issues_url":"https://api.github.com/repos/Antondomashnev/Sourcery/issues{/number}","pulls_url":"https://api.github.com/repos/Antondomashnev/Sourcery/pulls{/number}","milestones_url":"https://api.github.com/repos/Antondomashnev/Sourcery/milestones{/number}","notifications_url":"https://api.github.com/repos/Antondomashnev/Sourcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Antondomashnev/Sourcery/labels{/name}","releases_url":"https://api.github.com/repos/Antondomashnev/Sourcery/releases{/id}","deployments_url":"https://api.github.com/repos/Antondomashnev/Sourcery/deployments","created_at":"2017-03-06T21:15:27Z","updated_at":"2017-03-06T21:15:29Z","pushed_at":"2017-06-01T22:10:11Z","git_url":"git://github.com/Antondomashnev/Sourcery.git","ssh_url":"git@github.com:Antondomashnev/Sourcery.git","clone_url":"https://github.com/Antondomashnev/Sourcery.git","svn_url":"https://github.com/Antondomashnev/Sourcery","homepage":"http://merowing.info","size":6286,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"krzysztofzablocki:master","ref":"master","sha":"b1203e207a843d3c080901883fdced003b8633e3","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars2.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"repo":{"id":76171100,"name":"Sourcery","full_name":"krzysztofzablocki/Sourcery","owner":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars2.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysztofzablocki/Sourcery","description":"Meta-programming for Swift, stop writing boilerplate code.","fork":false,"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery","forks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/forks","keys_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/teams","hooks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/hooks","issue_events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/events{/number}","events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/events","assignees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/assignees{/user}","branches_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/branches{/branch}","tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/tags","blobs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/languages","stargazers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/stargazers","contributors_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contributors","subscribers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscribers","subscription_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscription","commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contents/{+path}","compare_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/merges","archive_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/downloads","issues_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues{/number}","pulls_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels{/name}","releases_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/releases{/id}","deployments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/deployments","created_at":"2016-12-11T11:49:25Z","updated_at":"2017-06-01T13:21:13Z","pushed_at":"2017-06-01T19:01:01Z","git_url":"git://github.com/krzysztofzablocki/Sourcery.git","ssh_url":"git@github.com:krzysztofzablocki/Sourcery.git","clone_url":"https://github.com/krzysztofzablocki/Sourcery.git","svn_url":"https://github.com/krzysztofzablocki/Sourcery","homepage":"http://merowing.info","size":6275,"stargazers_count":2137,"watchers_count":2137,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":33,"forks":114,"open_issues":33,"watchers":2137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329"},"html":{"href":"https://github.com/krzysztofzablocki/Sourcery/pull/329"},"issue":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/329"},"comments":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/56e21f74829cb90177e5ed625a413dec2810d408"}}}}
{"actor":{"display_login":"Antondomashnev"}}