{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/Versent/unicreds/pulls/16","id":63325472,"html_url":"https://github.com/Versent/unicreds/pull/16","diff_url":"https://github.com/Versent/unicreds/pull/16.diff","patch_url":"https://github.com/Versent/unicreds/pull/16.patch","issue_url":"https://api.github.com/repos/Versent/unicreds/issues/16","number":16,"state":"open","locked":false,"title":"Use methods when there is state.","user":{"login":"ojongerius","id":1726055,"avatar_url":"https://avatars.githubusercontent.com/u/1726055?v=3","gravatar_id":"","url":"https://api.github.com/users/ojongerius","html_url":"https://github.com/ojongerius","followers_url":"https://api.github.com/users/ojongerius/followers","following_url":"https://api.github.com/users/ojongerius/following{/other_user}","gists_url":"https://api.github.com/users/ojongerius/gists{/gist_id}","starred_url":"https://api.github.com/users/ojongerius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojongerius/subscriptions","organizations_url":"https://api.github.com/users/ojongerius/orgs","repos_url":"https://api.github.com/users/ojongerius/repos","events_url":"https://api.github.com/users/ojongerius/events{/privacy}","received_events_url":"https://api.github.com/users/ojongerius/received_events","type":"User","site_admin":false},"body":"There is a fair amount of getting both values and errors, followed by passing those values to another function.\r\n\r\nThis PR is just an incomplete example, but passes tests. How do you feel about refactoring to use methods?","created_at":"2016-03-18T04:01:57Z","updated_at":"2016-03-18T04:01:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Versent/unicreds/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Versent/unicreds/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Versent/unicreds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Versent/unicreds/issues/16/comments","statuses_url":"https://api.github.com/repos/Versent/unicreds/statuses/06a53e702e641ee3213e9f66e1fc322f0b3c9c4d","head":{"label":"atlassian:methods","ref":"methods","sha":"06a53e702e641ee3213e9f66e1fc322f0b3c9c4d","user":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"repo":{"id":54000396,"name":"unicreds","full_name":"atlassian/unicreds","owner":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlassian/unicreds","description":"unicreds is currently a pretty faithful port of credstash to go.","fork":true,"url":"https://api.github.com/repos/atlassian/unicreds","forks_url":"https://api.github.com/repos/atlassian/unicreds/forks","keys_url":"https://api.github.com/repos/atlassian/unicreds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlassian/unicreds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlassian/unicreds/teams","hooks_url":"https://api.github.com/repos/atlassian/unicreds/hooks","issue_events_url":"https://api.github.com/repos/atlassian/unicreds/issues/events{/number}","events_url":"https://api.github.com/repos/atlassian/unicreds/events","assignees_url":"https://api.github.com/repos/atlassian/unicreds/assignees{/user}","branches_url":"https://api.github.com/repos/atlassian/unicreds/branches{/branch}","tags_url":"https://api.github.com/repos/atlassian/unicreds/tags","blobs_url":"https://api.github.com/repos/atlassian/unicreds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlassian/unicreds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlassian/unicreds/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlassian/unicreds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlassian/unicreds/statuses/{sha}","languages_url":"https://api.github.com/repos/atlassian/unicreds/languages","stargazers_url":"https://api.github.com/repos/atlassian/unicreds/stargazers","contributors_url":"https://api.github.com/repos/atlassian/unicreds/contributors","subscribers_url":"https://api.github.com/repos/atlassian/unicreds/subscribers","subscription_url":"https://api.github.com/repos/atlassian/unicreds/subscription","commits_url":"https://api.github.com/repos/atlassian/unicreds/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlassian/unicreds/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlassian/unicreds/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlassian/unicreds/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlassian/unicreds/contents/{+path}","compare_url":"https://api.github.com/repos/atlassian/unicreds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlassian/unicreds/merges","archive_url":"https://api.github.com/repos/atlassian/unicreds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlassian/unicreds/downloads","issues_url":"https://api.github.com/repos/atlassian/unicreds/issues{/number}","pulls_url":"https://api.github.com/repos/atlassian/unicreds/pulls{/number}","milestones_url":"https://api.github.com/repos/atlassian/unicreds/milestones{/number}","notifications_url":"https://api.github.com/repos/atlassian/unicreds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlassian/unicreds/labels{/name}","releases_url":"https://api.github.com/repos/atlassian/unicreds/releases{/id}","deployments_url":"https://api.github.com/repos/atlassian/unicreds/deployments","created_at":"2016-03-16T04:17:33Z","updated_at":"2016-03-16T04:17:35Z","pushed_at":"2016-03-18T03:54:17Z","git_url":"git://github.com/atlassian/unicreds.git","ssh_url":"git@github.com:atlassian/unicreds.git","clone_url":"https://github.com/atlassian/unicreds.git","svn_url":"https://github.com/atlassian/unicreds","homepage":"https://github.com/Versent/unicreds","size":47,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":"atlassian"}},"base":{"label":"Versent:master","ref":"master","sha":"0468e0cd77682d82b384975be48c4a20ee98bf99","user":{"login":"Versent","id":11023632,"avatar_url":"https://avatars.githubusercontent.com/u/11023632?v=3","gravatar_id":"","url":"https://api.github.com/users/Versent","html_url":"https://github.com/Versent","followers_url":"https://api.github.com/users/Versent/followers","following_url":"https://api.github.com/users/Versent/following{/other_user}","gists_url":"https://api.github.com/users/Versent/gists{/gist_id}","starred_url":"https://api.github.com/users/Versent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Versent/subscriptions","organizations_url":"https://api.github.com/users/Versent/orgs","repos_url":"https://api.github.com/users/Versent/repos","events_url":"https://api.github.com/users/Versent/events{/privacy}","received_events_url":"https://api.github.com/users/Versent/received_events","type":"Organization","site_admin":false},"repo":{"id":47814197,"name":"unicreds","full_name":"Versent/unicreds","owner":{"login":"Versent","id":11023632,"avatar_url":"https://avatars.githubusercontent.com/u/11023632?v=3","gravatar_id":"","url":"https://api.github.com/users/Versent","html_url":"https://github.com/Versent","followers_url":"https://api.github.com/users/Versent/followers","following_url":"https://api.github.com/users/Versent/following{/other_user}","gists_url":"https://api.github.com/users/Versent/gists{/gist_id}","starred_url":"https://api.github.com/users/Versent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Versent/subscriptions","organizations_url":"https://api.github.com/users/Versent/orgs","repos_url":"https://api.github.com/users/Versent/repos","events_url":"https://api.github.com/users/Versent/events{/privacy}","received_events_url":"https://api.github.com/users/Versent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Versent/unicreds","description":"unicreds is currently a pretty faithful port of credstash to go.","fork":false,"url":"https://api.github.com/repos/Versent/unicreds","forks_url":"https://api.github.com/repos/Versent/unicreds/forks","keys_url":"https://api.github.com/repos/Versent/unicreds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Versent/unicreds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Versent/unicreds/teams","hooks_url":"https://api.github.com/repos/Versent/unicreds/hooks","issue_events_url":"https://api.github.com/repos/Versent/unicreds/issues/events{/number}","events_url":"https://api.github.com/repos/Versent/unicreds/events","assignees_url":"https://api.github.com/repos/Versent/unicreds/assignees{/user}","branches_url":"https://api.github.com/repos/Versent/unicreds/branches{/branch}","tags_url":"https://api.github.com/repos/Versent/unicreds/tags","blobs_url":"https://api.github.com/repos/Versent/unicreds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Versent/unicreds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Versent/unicreds/git/refs{/sha}","trees_url":"https://api.github.com/repos/Versent/unicreds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Versent/unicreds/statuses/{sha}","languages_url":"https://api.github.com/repos/Versent/unicreds/languages","stargazers_url":"https://api.github.com/repos/Versent/unicreds/stargazers","contributors_url":"https://api.github.com/repos/Versent/unicreds/contributors","subscribers_url":"https://api.github.com/repos/Versent/unicreds/subscribers","subscription_url":"https://api.github.com/repos/Versent/unicreds/subscription","commits_url":"https://api.github.com/repos/Versent/unicreds/commits{/sha}","git_commits_url":"https://api.github.com/repos/Versent/unicreds/git/commits{/sha}","comments_url":"https://api.github.com/repos/Versent/unicreds/comments{/number}","issue_comment_url":"https://api.github.com/repos/Versent/unicreds/issues/comments{/number}","contents_url":"https://api.github.com/repos/Versent/unicreds/contents/{+path}","compare_url":"https://api.github.com/repos/Versent/unicreds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Versent/unicreds/merges","archive_url":"https://api.github.com/repos/Versent/unicreds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Versent/unicreds/downloads","issues_url":"https://api.github.com/repos/Versent/unicreds/issues{/number}","pulls_url":"https://api.github.com/repos/Versent/unicreds/pulls{/number}","milestones_url":"https://api.github.com/repos/Versent/unicreds/milestones{/number}","notifications_url":"https://api.github.com/repos/Versent/unicreds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Versent/unicreds/labels{/name}","releases_url":"https://api.github.com/repos/Versent/unicreds/releases{/id}","deployments_url":"https://api.github.com/repos/Versent/unicreds/deployments","created_at":"2015-12-11T08:23:20Z","updated_at":"2016-03-17T19:13:58Z","pushed_at":"2016-03-18T03:50:27Z","git_url":"git://github.com/Versent/unicreds.git","ssh_url":"git@github.com:Versent/unicreds.git","clone_url":"https://github.com/Versent/unicreds.git","svn_url":"https://github.com/Versent/unicreds","homepage":"https://github.com/Versent/unicreds","size":40,"stargazers_count":21,"watchers_count":21,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Versent/unicreds/pulls/16"},"html":{"href":"https://github.com/Versent/unicreds/pull/16"},"issue":{"href":"https://api.github.com/repos/Versent/unicreds/issues/16"},"comments":{"href":"https://api.github.com/repos/Versent/unicreds/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Versent/unicreds/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Versent/unicreds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Versent/unicreds/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Versent/unicreds/statuses/06a53e702e641ee3213e9f66e1fc322f0b3c9c4d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":44,"deletions":24,"changed_files":3}}