{"action":"created","comment":{"url":"https://api.github.com/repos/rubygems/rubygems/pulls/comments/240097972","pull_request_review_id":183047984,"id":240097972,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDA5Nzk3Mg==","diff_hunk":"@@ -57,6 +58,50 @@ def test_execute\n     assert_equal [yank_uri], @fetcher.paths\n   end\n \n+  def test_execute_with_otp_success\n+    response_fail = 'You have enabled multifactor authentication but your request doesn\\'t have the correct OTP code. Please check it and retry.'\n+    yank_uri = 'http://example/api/v1/gems/yank'\n+    @fetcher.data[yank_uri] = proc do\n+      @call_count ||= 0\n+      (@call_count += 1).odd? ? [response_fail, 401, 'Unauthorized'] : ['Successfully yanked', 200, 'OK']","path":"test/rubygems/test_gem_commands_yank_command.rb","position":17,"original_position":17,"commit_id":"8a7ede6bfd05efca4335c4aba9b5c4d317047d39","original_commit_id":"8a7ede6bfd05efca4335c4aba9b5c4d317047d39","user":{"login":"sonalkr132","id":7680662,"node_id":"MDQ6VXNlcjc2ODA2NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/7680662?v=4","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"body":"what does this do again?","created_at":"2018-12-10T06:51:59Z","updated_at":"2018-12-10T06:52:00Z","html_url":"https://github.com/rubygems/rubygems/pull/2514#discussion_r240097972","pull_request_url":"https://api.github.com/repos/rubygems/rubygems/pulls/2514","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/comments/240097972"},"html":{"href":"https://github.com/rubygems/rubygems/pull/2514#discussion_r240097972"},"pull_request":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/2514"}}},"pull_request":{"url":"https://api.github.com/repos/rubygems/rubygems/pulls/2514","id":236585548,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NTg1NTQ4","html_url":"https://github.com/rubygems/rubygems/pull/2514","diff_url":"https://github.com/rubygems/rubygems/pull/2514.diff","patch_url":"https://github.com/rubygems/rubygems/pull/2514.patch","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/2514","number":2514,"state":"open","locked":false,"title":"Multifactor authentication for yank command.","user":{"login":"ecnelises","id":10329663,"node_id":"MDQ6VXNlcjEwMzI5NjYz","avatar_url":"https://avatars2.githubusercontent.com/u/10329663?v=4","gravatar_id":"","url":"https://api.github.com/users/ecnelises","html_url":"https://github.com/ecnelises","followers_url":"https://api.github.com/users/ecnelises/followers","following_url":"https://api.github.com/users/ecnelises/following{/other_user}","gists_url":"https://api.github.com/users/ecnelises/gists{/gist_id}","starred_url":"https://api.github.com/users/ecnelises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecnelises/subscriptions","organizations_url":"https://api.github.com/users/ecnelises/orgs","repos_url":"https://api.github.com/users/ecnelises/repos","events_url":"https://api.github.com/users/ecnelises/events{/privacy}","received_events_url":"https://api.github.com/users/ecnelises/received_events","type":"User","site_admin":false},"body":"# Description:\r\n\r\nI added check for `otp` field, as multi-factor authentication feature to rubygems. Currently master branch of rubygems.org API has supported it. (See [#1831](https://github.com/rubygems/rubygems.org/pull/1831)) This PR will add respective support for client. \r\n______________\r\n\r\n# Tasks:\r\n\r\n- [x] Describe the problem / feature\r\n- [x] Write tests\r\n- [x] Write code to solve the problem\r\n- [ ] Get code review from coworkers / friends\r\n\r\nI will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).\r\n\r\ncc: @sonalkr132 ","created_at":"2018-12-06T16:11:45Z","updated_at":"2018-12-10T06:52:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f3b128a23f76632102cab30c754ef1f8ca7bd79","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":307374455,"node_id":"MDU6TGFiZWwzMDczNzQ0NTU=","url":"https://api.github.com/repos/rubygems/rubygems/labels/status:%20triage","name":"status: triage","color":"fef2c0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rubygems/rubygems/pulls/2514/commits","review_comments_url":"https://api.github.com/repos/rubygems/rubygems/pulls/2514/comments","review_comment_url":"https://api.github.com/repos/rubygems/rubygems/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/2514/comments","statuses_url":"https://api.github.com/repos/rubygems/rubygems/statuses/8a7ede6bfd05efca4335c4aba9b5c4d317047d39","head":{"label":"ecnelises:multifactor-auth","ref":"multifactor-auth","sha":"8a7ede6bfd05efca4335c4aba9b5c4d317047d39","user":{"login":"ecnelises","id":10329663,"node_id":"MDQ6VXNlcjEwMzI5NjYz","avatar_url":"https://avatars2.githubusercontent.com/u/10329663?v=4","gravatar_id":"","url":"https://api.github.com/users/ecnelises","html_url":"https://github.com/ecnelises","followers_url":"https://api.github.com/users/ecnelises/followers","following_url":"https://api.github.com/users/ecnelises/following{/other_user}","gists_url":"https://api.github.com/users/ecnelises/gists{/gist_id}","starred_url":"https://api.github.com/users/ecnelises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecnelises/subscriptions","organizations_url":"https://api.github.com/users/ecnelises/orgs","repos_url":"https://api.github.com/users/ecnelises/repos","events_url":"https://api.github.com/users/ecnelises/events{/privacy}","received_events_url":"https://api.github.com/users/ecnelises/received_events","type":"User","site_admin":false},"repo":{"id":126305279,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzMDUyNzk=","name":"rubygems","full_name":"ecnelises/rubygems","private":false,"owner":{"login":"ecnelises","id":10329663,"node_id":"MDQ6VXNlcjEwMzI5NjYz","avatar_url":"https://avatars2.githubusercontent.com/u/10329663?v=4","gravatar_id":"","url":"https://api.github.com/users/ecnelises","html_url":"https://github.com/ecnelises","followers_url":"https://api.github.com/users/ecnelises/followers","following_url":"https://api.github.com/users/ecnelises/following{/other_user}","gists_url":"https://api.github.com/users/ecnelises/gists{/gist_id}","starred_url":"https://api.github.com/users/ecnelises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecnelises/subscriptions","organizations_url":"https://api.github.com/users/ecnelises/orgs","repos_url":"https://api.github.com/users/ecnelises/repos","events_url":"https://api.github.com/users/ecnelises/events{/privacy}","received_events_url":"https://api.github.com/users/ecnelises/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ecnelises/rubygems","description":"Library packaging and distribution for Ruby.","fork":true,"url":"https://api.github.com/repos/ecnelises/rubygems","forks_url":"https://api.github.com/repos/ecnelises/rubygems/forks","keys_url":"https://api.github.com/repos/ecnelises/rubygems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecnelises/rubygems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecnelises/rubygems/teams","hooks_url":"https://api.github.com/repos/ecnelises/rubygems/hooks","issue_events_url":"https://api.github.com/repos/ecnelises/rubygems/issues/events{/number}","events_url":"https://api.github.com/repos/ecnelises/rubygems/events","assignees_url":"https://api.github.com/repos/ecnelises/rubygems/assignees{/user}","branches_url":"https://api.github.com/repos/ecnelises/rubygems/branches{/branch}","tags_url":"https://api.github.com/repos/ecnelises/rubygems/tags","blobs_url":"https://api.github.com/repos/ecnelises/rubygems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecnelises/rubygems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecnelises/rubygems/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecnelises/rubygems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecnelises/rubygems/statuses/{sha}","languages_url":"https://api.github.com/repos/ecnelises/rubygems/languages","stargazers_url":"https://api.github.com/repos/ecnelises/rubygems/stargazers","contributors_url":"https://api.github.com/repos/ecnelises/rubygems/contributors","subscribers_url":"https://api.github.com/repos/ecnelises/rubygems/subscribers","subscription_url":"https://api.github.com/repos/ecnelises/rubygems/subscription","commits_url":"https://api.github.com/repos/ecnelises/rubygems/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecnelises/rubygems/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecnelises/rubygems/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecnelises/rubygems/issues/comments{/number}","contents_url":"https://api.github.com/repos/ecnelises/rubygems/contents/{+path}","compare_url":"https://api.github.com/repos/ecnelises/rubygems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecnelises/rubygems/merges","archive_url":"https://api.github.com/repos/ecnelises/rubygems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecnelises/rubygems/downloads","issues_url":"https://api.github.com/repos/ecnelises/rubygems/issues{/number}","pulls_url":"https://api.github.com/repos/ecnelises/rubygems/pulls{/number}","milestones_url":"https://api.github.com/repos/ecnelises/rubygems/milestones{/number}","notifications_url":"https://api.github.com/repos/ecnelises/rubygems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecnelises/rubygems/labels{/name}","releases_url":"https://api.github.com/repos/ecnelises/rubygems/releases{/id}","deployments_url":"https://api.github.com/repos/ecnelises/rubygems/deployments","created_at":"2018-03-22T08:41:07Z","updated_at":"2018-12-06T10:45:23Z","pushed_at":"2018-12-10T06:38:18Z","git_url":"git://github.com/ecnelises/rubygems.git","ssh_url":"git@github.com:ecnelises/rubygems.git","clone_url":"https://github.com/ecnelises/rubygems.git","svn_url":"https://github.com/ecnelises/rubygems","homepage":"https://rubygems.org/","size":15337,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubygems:master","ref":"master","sha":"8ca2d1202c7dfe7a7c0609c9f617fdbd2a0cb970","user":{"login":"rubygems","id":208761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODc2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/208761?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"repo":{"id":614070,"node_id":"MDEwOlJlcG9zaXRvcnk2MTQwNzA=","name":"rubygems","full_name":"rubygems/rubygems","private":false,"owner":{"login":"rubygems","id":208761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODc2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/208761?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rubygems/rubygems","description":"Library packaging and distribution for Ruby.","fork":false,"url":"https://api.github.com/repos/rubygems/rubygems","forks_url":"https://api.github.com/repos/rubygems/rubygems/forks","keys_url":"https://api.github.com/repos/rubygems/rubygems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygems/rubygems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygems/rubygems/teams","hooks_url":"https://api.github.com/repos/rubygems/rubygems/hooks","issue_events_url":"https://api.github.com/repos/rubygems/rubygems/issues/events{/number}","events_url":"https://api.github.com/repos/rubygems/rubygems/events","assignees_url":"https://api.github.com/repos/rubygems/rubygems/assignees{/user}","branches_url":"https://api.github.com/repos/rubygems/rubygems/branches{/branch}","tags_url":"https://api.github.com/repos/rubygems/rubygems/tags","blobs_url":"https://api.github.com/repos/rubygems/rubygems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygems/rubygems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygems/rubygems/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygems/rubygems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygems/rubygems/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygems/rubygems/languages","stargazers_url":"https://api.github.com/repos/rubygems/rubygems/stargazers","contributors_url":"https://api.github.com/repos/rubygems/rubygems/contributors","subscribers_url":"https://api.github.com/repos/rubygems/rubygems/subscribers","subscription_url":"https://api.github.com/repos/rubygems/rubygems/subscription","commits_url":"https://api.github.com/repos/rubygems/rubygems/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygems/rubygems/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygems/rubygems/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygems/rubygems/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygems/rubygems/contents/{+path}","compare_url":"https://api.github.com/repos/rubygems/rubygems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygems/rubygems/merges","archive_url":"https://api.github.com/repos/rubygems/rubygems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygems/rubygems/downloads","issues_url":"https://api.github.com/repos/rubygems/rubygems/issues{/number}","pulls_url":"https://api.github.com/repos/rubygems/rubygems/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygems/rubygems/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygems/rubygems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygems/rubygems/labels{/name}","releases_url":"https://api.github.com/repos/rubygems/rubygems/releases{/id}","deployments_url":"https://api.github.com/repos/rubygems/rubygems/deployments","created_at":"2010-04-16T19:02:44Z","updated_at":"2018-12-08T15:58:43Z","pushed_at":"2018-12-10T06:38:20Z","git_url":"git://github.com/rubygems/rubygems.git","ssh_url":"git@github.com:rubygems/rubygems.git","clone_url":"https://github.com/rubygems/rubygems.git","svn_url":"https://github.com/rubygems/rubygems","homepage":"https://rubygems.org/","size":15361,"stargazers_count":2053,"watchers_count":2053,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1018,"mirror_url":null,"archived":false,"open_issues_count":108,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1018,"open_issues":108,"watchers":2053,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/2514"},"html":{"href":"https://github.com/rubygems/rubygems/pull/2514"},"issue":{"href":"https://api.github.com/repos/rubygems/rubygems/issues/2514"},"comments":{"href":"https://api.github.com/repos/rubygems/rubygems/issues/2514/comments"},"review_comments":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/2514/comments"},"review_comment":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubygems/rubygems/pulls/2514/commits"},"statuses":{"href":"https://api.github.com/repos/rubygems/rubygems/statuses/8a7ede6bfd05efca4335c4aba9b5c4d317047d39"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonalkr132"}}