{"action":"created","comment":{"url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/comments/56906191","id":56906191,"diff_hunk":"@@ -127,11 +182,44 @@ If none is set the normal git config is tried in the following order:\n Local repository config\n User config\n Global config\");\n-            process::exit(1);\n-        }\n-    };\n+                process::exit(1);\n+            }\n+        };\n+\n+        cb.signature(signature.to_owned());\n+    }\n+\n+    // In case we are in write-mode AND release mode,\n+    // we will make sure we got all configuration settings\n+    if !is_dry_run && release_mode {\n+        let remote_url = match repo.find_remote(\"origin\") {\n+            Err(e) => print_exit!(\"Could not determine the origin remote url: {:?}\", e),\n+            Ok(remote) => {\n+                let url = remote.url().expect(\"Remote URL is not valid UTF-8\");\n+                Url::parse(&url).expect(\"Remote URL can't be parsed\")\n+            }\n+        };\n+\n+        let (user, repo_name) = user_repo_from_url(remote_url)\n+            .unwrap_or_else(|e| print_exit!(\"Could not extract user and repository name from URL: {:?}\", e));\n+        cb.user(user);\n+        cb.repository_name(repo_name);\n+\n+        let gh_token = env::var(\"GH_TOKEN\")\n+            .unwrap_or_else(|err| print_exit!(\"GH_TOKEN not set: {:?}\", err));\n+\n+        let cargo_token = env::var(\"CARGO_TOKEN\")\n+            .unwrap_or_else(|err| print_exit!(\"CARGO_TOKEN not set: {:?}\", err));\n \n-    let version = toml_file::read_from_file(repository_path)\n+        cb.gh_token(gh_token);\n+        cb.cargo_token(cargo_token);\n+    }\n+\n+    cb.repository(repo);\n+    cb.branch(\"master\".into());","path":"src/main.rs","position":171,"original_position":171,"commit_id":"187d1d3fd8dd4bdaca3d4876ccdc023b0c1e828f","original_commit_id":"187d1d3fd8dd4bdaca3d4876ccdc023b0c1e828f","user":{"login":"schultyy","id":235808,"avatar_url":"https://avatars.githubusercontent.com/u/235808?v=3","gravatar_id":"","url":"https://api.github.com/users/schultyy","html_url":"https://github.com/schultyy","followers_url":"https://api.github.com/users/schultyy/followers","following_url":"https://api.github.com/users/schultyy/following{/other_user}","gists_url":"https://api.github.com/users/schultyy/gists{/gist_id}","starred_url":"https://api.github.com/users/schultyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schultyy/subscriptions","organizations_url":"https://api.github.com/users/schultyy/orgs","repos_url":"https://api.github.com/users/schultyy/repos","events_url":"https://api.github.com/users/schultyy/events{/privacy}","received_events_url":"https://api.github.com/users/schultyy/received_events","type":"User","site_admin":false},"body":"Do we use `master` only right now?","created_at":"2016-03-21T22:07:19Z","updated_at":"2016-03-21T22:07:19Z","html_url":"https://github.com/semantic-rs/semantic-rs/pull/62#discussion_r56906191","pull_request_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/comments/56906191"},"html":{"href":"https://github.com/semantic-rs/semantic-rs/pull/62#discussion_r56906191"},"pull_request":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62","id":62253863,"html_url":"https://github.com/semantic-rs/semantic-rs/pull/62","diff_url":"https://github.com/semantic-rs/semantic-rs/pull/62.diff","patch_url":"https://github.com/semantic-rs/semantic-rs/pull/62.patch","issue_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/62","number":62,"state":"open","locked":false,"title":"GitHub release","user":{"login":"badboy","id":2129,"avatar_url":"https://avatars.githubusercontent.com/u/2129?v=3","gravatar_id":"","url":"https://api.github.com/users/badboy","html_url":"https://github.com/badboy","followers_url":"https://api.github.com/users/badboy/followers","following_url":"https://api.github.com/users/badboy/following{/other_user}","gists_url":"https://api.github.com/users/badboy/gists{/gist_id}","starred_url":"https://api.github.com/users/badboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badboy/subscriptions","organizations_url":"https://api.github.com/users/badboy/orgs","repos_url":"https://api.github.com/users/badboy/repos","events_url":"https://api.github.com/users/badboy/events{/privacy}","received_events_url":"https://api.github.com/users/badboy/received_events","type":"User","site_admin":false},"body":"This is a first shot at #15 and #16 \r\n\r\n* [x] Push to GitHub\r\n    * [x] Make sure it works on Travis with proper git key\r\n* [x] Create release on GitHub\r\n    * [x] Better user key handling\r\n* [x] Publish on crates.io","created_at":"2016-03-09T16:19:26Z","updated_at":"2016-03-21T22:07:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f51f0426a2e765b18074203e7e5aed62f9f5800","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62/commits","review_comments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62/comments","review_comment_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/62/comments","statuses_url":"https://api.github.com/repos/semantic-rs/semantic-rs/statuses/187d1d3fd8dd4bdaca3d4876ccdc023b0c1e828f","head":{"label":"semantic-rs:github-release","ref":"github-release","sha":"187d1d3fd8dd4bdaca3d4876ccdc023b0c1e828f","user":{"login":"semantic-rs","id":16464200,"avatar_url":"https://avatars.githubusercontent.com/u/16464200?v=3","gravatar_id":"","url":"https://api.github.com/users/semantic-rs","html_url":"https://github.com/semantic-rs","followers_url":"https://api.github.com/users/semantic-rs/followers","following_url":"https://api.github.com/users/semantic-rs/following{/other_user}","gists_url":"https://api.github.com/users/semantic-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-rs/subscriptions","organizations_url":"https://api.github.com/users/semantic-rs/orgs","repos_url":"https://api.github.com/users/semantic-rs/repos","events_url":"https://api.github.com/users/semantic-rs/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-rs/received_events","type":"Organization","site_admin":false},"repo":{"id":47697808,"name":"semantic-rs","full_name":"semantic-rs/semantic-rs","owner":{"login":"semantic-rs","id":16464200,"avatar_url":"https://avatars.githubusercontent.com/u/16464200?v=3","gravatar_id":"","url":"https://api.github.com/users/semantic-rs","html_url":"https://github.com/semantic-rs","followers_url":"https://api.github.com/users/semantic-rs/followers","following_url":"https://api.github.com/users/semantic-rs/following{/other_user}","gists_url":"https://api.github.com/users/semantic-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-rs/subscriptions","organizations_url":"https://api.github.com/users/semantic-rs/orgs","repos_url":"https://api.github.com/users/semantic-rs/repos","events_url":"https://api.github.com/users/semantic-rs/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-rs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semantic-rs/semantic-rs","description":":rocket: Automatic crate publishing done right","fork":false,"url":"https://api.github.com/repos/semantic-rs/semantic-rs","forks_url":"https://api.github.com/repos/semantic-rs/semantic-rs/forks","keys_url":"https://api.github.com/repos/semantic-rs/semantic-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semantic-rs/semantic-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semantic-rs/semantic-rs/teams","hooks_url":"https://api.github.com/repos/semantic-rs/semantic-rs/hooks","issue_events_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/events{/number}","events_url":"https://api.github.com/repos/semantic-rs/semantic-rs/events","assignees_url":"https://api.github.com/repos/semantic-rs/semantic-rs/assignees{/user}","branches_url":"https://api.github.com/repos/semantic-rs/semantic-rs/branches{/branch}","tags_url":"https://api.github.com/repos/semantic-rs/semantic-rs/tags","blobs_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semantic-rs/semantic-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/semantic-rs/semantic-rs/languages","stargazers_url":"https://api.github.com/repos/semantic-rs/semantic-rs/stargazers","contributors_url":"https://api.github.com/repos/semantic-rs/semantic-rs/contributors","subscribers_url":"https://api.github.com/repos/semantic-rs/semantic-rs/subscribers","subscription_url":"https://api.github.com/repos/semantic-rs/semantic-rs/subscription","commits_url":"https://api.github.com/repos/semantic-rs/semantic-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/semantic-rs/semantic-rs/contents/{+path}","compare_url":"https://api.github.com/repos/semantic-rs/semantic-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semantic-rs/semantic-rs/merges","archive_url":"https://api.github.com/repos/semantic-rs/semantic-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semantic-rs/semantic-rs/downloads","issues_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues{/number}","pulls_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/semantic-rs/semantic-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/semantic-rs/semantic-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semantic-rs/semantic-rs/labels{/name}","releases_url":"https://api.github.com/repos/semantic-rs/semantic-rs/releases{/id}","deployments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/deployments","created_at":"2015-12-09T14:54:07Z","updated_at":"2016-03-04T18:57:57Z","pushed_at":"2016-03-21T20:29:26Z","git_url":"git://github.com/semantic-rs/semantic-rs.git","ssh_url":"git@github.com:semantic-rs/semantic-rs.git","clone_url":"https://github.com/semantic-rs/semantic-rs.git","svn_url":"https://github.com/semantic-rs/semantic-rs","homepage":"","size":144,"stargazers_count":13,"watchers_count":13,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":13,"default_branch":"master"}},"base":{"label":"semantic-rs:master","ref":"master","sha":"b992f65a381d9d6d18ec4d7d1dfd737b7ddfb8b7","user":{"login":"semantic-rs","id":16464200,"avatar_url":"https://avatars.githubusercontent.com/u/16464200?v=3","gravatar_id":"","url":"https://api.github.com/users/semantic-rs","html_url":"https://github.com/semantic-rs","followers_url":"https://api.github.com/users/semantic-rs/followers","following_url":"https://api.github.com/users/semantic-rs/following{/other_user}","gists_url":"https://api.github.com/users/semantic-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-rs/subscriptions","organizations_url":"https://api.github.com/users/semantic-rs/orgs","repos_url":"https://api.github.com/users/semantic-rs/repos","events_url":"https://api.github.com/users/semantic-rs/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-rs/received_events","type":"Organization","site_admin":false},"repo":{"id":47697808,"name":"semantic-rs","full_name":"semantic-rs/semantic-rs","owner":{"login":"semantic-rs","id":16464200,"avatar_url":"https://avatars.githubusercontent.com/u/16464200?v=3","gravatar_id":"","url":"https://api.github.com/users/semantic-rs","html_url":"https://github.com/semantic-rs","followers_url":"https://api.github.com/users/semantic-rs/followers","following_url":"https://api.github.com/users/semantic-rs/following{/other_user}","gists_url":"https://api.github.com/users/semantic-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-rs/subscriptions","organizations_url":"https://api.github.com/users/semantic-rs/orgs","repos_url":"https://api.github.com/users/semantic-rs/repos","events_url":"https://api.github.com/users/semantic-rs/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-rs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semantic-rs/semantic-rs","description":":rocket: Automatic crate publishing done right","fork":false,"url":"https://api.github.com/repos/semantic-rs/semantic-rs","forks_url":"https://api.github.com/repos/semantic-rs/semantic-rs/forks","keys_url":"https://api.github.com/repos/semantic-rs/semantic-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semantic-rs/semantic-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semantic-rs/semantic-rs/teams","hooks_url":"https://api.github.com/repos/semantic-rs/semantic-rs/hooks","issue_events_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/events{/number}","events_url":"https://api.github.com/repos/semantic-rs/semantic-rs/events","assignees_url":"https://api.github.com/repos/semantic-rs/semantic-rs/assignees{/user}","branches_url":"https://api.github.com/repos/semantic-rs/semantic-rs/branches{/branch}","tags_url":"https://api.github.com/repos/semantic-rs/semantic-rs/tags","blobs_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semantic-rs/semantic-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/semantic-rs/semantic-rs/languages","stargazers_url":"https://api.github.com/repos/semantic-rs/semantic-rs/stargazers","contributors_url":"https://api.github.com/repos/semantic-rs/semantic-rs/contributors","subscribers_url":"https://api.github.com/repos/semantic-rs/semantic-rs/subscribers","subscription_url":"https://api.github.com/repos/semantic-rs/semantic-rs/subscription","commits_url":"https://api.github.com/repos/semantic-rs/semantic-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/semantic-rs/semantic-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/semantic-rs/semantic-rs/contents/{+path}","compare_url":"https://api.github.com/repos/semantic-rs/semantic-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semantic-rs/semantic-rs/merges","archive_url":"https://api.github.com/repos/semantic-rs/semantic-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semantic-rs/semantic-rs/downloads","issues_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues{/number}","pulls_url":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/semantic-rs/semantic-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/semantic-rs/semantic-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semantic-rs/semantic-rs/labels{/name}","releases_url":"https://api.github.com/repos/semantic-rs/semantic-rs/releases{/id}","deployments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/deployments","created_at":"2015-12-09T14:54:07Z","updated_at":"2016-03-04T18:57:57Z","pushed_at":"2016-03-21T20:29:26Z","git_url":"git://github.com/semantic-rs/semantic-rs.git","ssh_url":"git@github.com:semantic-rs/semantic-rs.git","clone_url":"https://github.com/semantic-rs/semantic-rs.git","svn_url":"https://github.com/semantic-rs/semantic-rs","homepage":"","size":144,"stargazers_count":13,"watchers_count":13,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62"},"html":{"href":"https://github.com/semantic-rs/semantic-rs/pull/62"},"issue":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/62"},"comments":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/semantic-rs/semantic-rs/statuses/187d1d3fd8dd4bdaca3d4876ccdc023b0c1e828f"}}}}