GitHub PullRequestReviewCommentEvent at 2014-09-30 12:10:20
Repository: be_protected_client
Actor: seongreen
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/comments/18212777","id":18212777,"diff_hunk":"@@ -201,6 +201,49 @@ else\n end\n ```\n \n+### Managing rules\n+\n+```ruby\n+credentials = { auth_login: 'login', auth_password: 'password' }\n+rule = BeProtected::Rule.new(credentials)\n+\n+# create rule\n+For creating a rule, you should pass 3 params:\n+action - an action. Accepted values: 'reject' and 'review'","path":"README.md","position":12,"original_position":12,"commit_id":"ef332535aa56fe7fa45630d9b6160d63458b149a","original_commit_id":"ef332535aa56fe7fa45630d9b6160d63458b149a","user":{"login":"seongreen","id":159871,"avatar_url":"https://avatars.githubusercontent.com/u/159871?v=2","gravatar_id":"","url":"https://api.github.com/users/seongreen","html_url":"https://github.com/seongreen","followers_url":"https://api.github.com/users/seongreen/followers","following_url":"https://api.github.com/users/seongreen/following{/other_user}","gists_url":"https://api.github.com/users/seongreen/gists{/gist_id}","starred_url":"https://api.github.com/users/seongreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seongreen/subscriptions","organizations_url":"https://api.github.com/users/seongreen/orgs","repos_url":"https://api.github.com/users/seongreen/repos","events_url":"https://api.github.com/users/seongreen/events{/privacy}","received_events_url":"https://api.github.com/users/seongreen/received_events","type":"User","site_admin":false},"body":"rule action","created_at":"2014-09-30T12:10:20Z","updated_at":"2014-09-30T12:10:20Z","html_url":"https://github.com/ecomcharge/be_protected_client/pull/12#discussion_r18212777","pull_request_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/comments/18212777"},"html":{"href":"https://github.com/ecomcharge/be_protected_client/pull/12#discussion_r18212777"},"pull_request":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12","id":21997534,"html_url":"https://github.com/ecomcharge/be_protected_client/pull/12","diff_url":"https://github.com/ecomcharge/be_protected_client/pull/12.diff","patch_url":"https://github.com/ecomcharge/be_protected_client/pull/12.patch","issue_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/12","number":12,"state":"open","locked":false,"title":"Add ability to add rules","user":{"login":"shiroginne","id":63340,"avatar_url":"https://avatars.githubusercontent.com/u/63340?v=2","gravatar_id":"","url":"https://api.github.com/users/shiroginne","html_url":"https://github.com/shiroginne","followers_url":"https://api.github.com/users/shiroginne/followers","following_url":"https://api.github.com/users/shiroginne/following{/other_user}","gists_url":"https://api.github.com/users/shiroginne/gists{/gist_id}","starred_url":"https://api.github.com/users/shiroginne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiroginne/subscriptions","organizations_url":"https://api.github.com/users/shiroginne/orgs","repos_url":"https://api.github.com/users/shiroginne/repos","events_url":"https://api.github.com/users/shiroginne/events{/privacy}","received_events_url":"https://api.github.com/users/shiroginne/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-30T11:32:04Z","updated_at":"2014-09-30T12:10:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a2e8f29d1abfff369404b1e5ba3776227c81ed8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/12/comments","statuses_url":"https://api.github.com/repos/ecomcharge/be_protected_client/statuses/ef332535aa56fe7fa45630d9b6160d63458b149a","head":{"label":"ecomcharge:add-ability-to-add-rules","ref":"add-ability-to-add-rules","sha":"ef332535aa56fe7fa45630d9b6160d63458b149a","user":{"login":"ecomcharge","id":3842225,"avatar_url":"https://avatars.githubusercontent.com/u/3842225?v=2","gravatar_id":"","url":"https://api.github.com/users/ecomcharge","html_url":"https://github.com/ecomcharge","followers_url":"https://api.github.com/users/ecomcharge/followers","following_url":"https://api.github.com/users/ecomcharge/following{/other_user}","gists_url":"https://api.github.com/users/ecomcharge/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomcharge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomcharge/subscriptions","organizations_url":"https://api.github.com/users/ecomcharge/orgs","repos_url":"https://api.github.com/users/ecomcharge/repos","events_url":"https://api.github.com/users/ecomcharge/events{/privacy}","received_events_url":"https://api.github.com/users/ecomcharge/received_events","type":"User","site_admin":false},"repo":{"id":18760921,"name":"be_protected_client","full_name":"ecomcharge/be_protected_client","owner":{"login":"ecomcharge","id":3842225,"avatar_url":"https://avatars.githubusercontent.com/u/3842225?v=2","gravatar_id":"","url":"https://api.github.com/users/ecomcharge","html_url":"https://github.com/ecomcharge","followers_url":"https://api.github.com/users/ecomcharge/followers","following_url":"https://api.github.com/users/ecomcharge/following{/other_user}","gists_url":"https://api.github.com/users/ecomcharge/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomcharge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomcharge/subscriptions","organizations_url":"https://api.github.com/users/ecomcharge/orgs","repos_url":"https://api.github.com/users/ecomcharge/repos","events_url":"https://api.github.com/users/ecomcharge/events{/privacy}","received_events_url":"https://api.github.com/users/ecomcharge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ecomcharge/be_protected_client","description":"","fork":false,"url":"https://api.github.com/repos/ecomcharge/be_protected_client","forks_url":"https://api.github.com/repos/ecomcharge/be_protected_client/forks","keys_url":"https://api.github.com/repos/ecomcharge/be_protected_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecomcharge/be_protected_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecomcharge/be_protected_client/teams","hooks_url":"https://api.github.com/repos/ecomcharge/be_protected_client/hooks","issue_events_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/events{/number}","events_url":"https://api.github.com/repos/ecomcharge/be_protected_client/events","assignees_url":"https://api.github.com/repos/ecomcharge/be_protected_client/assignees{/user}","branches_url":"https://api.github.com/repos/ecomcharge/be_protected_client/branches{/branch}","tags_url":"https://api.github.com/repos/ecomcharge/be_protected_client/tags","blobs_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecomcharge/be_protected_client/statuses/{sha}","languages_url":"https://api.github.com/repos/ecomcharge/be_protected_client/languages","stargazers_url":"https://api.github.com/repos/ecomcharge/be_protected_client/stargazers","contributors_url":"https://api.github.com/repos/ecomcharge/be_protected_client/contributors","subscribers_url":"https://api.github.com/repos/ecomcharge/be_protected_client/subscribers","subscription_url":"https://api.github.com/repos/ecomcharge/be_protected_client/subscription","commits_url":"https://api.github.com/repos/ecomcharge/be_protected_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecomcharge/be_protected_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/comments/{number}","contents_url":"https://api.github.com/repos/ecomcharge/be_protected_client/contents/{+path}","compare_url":"https://api.github.com/repos/ecomcharge/be_protected_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecomcharge/be_protected_client/merges","archive_url":"https://api.github.com/repos/ecomcharge/be_protected_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecomcharge/be_protected_client/downloads","issues_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues{/number}","pulls_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls{/number}","milestones_url":"https://api.github.com/repos/ecomcharge/be_protected_client/milestones{/number}","notifications_url":"https://api.github.com/repos/ecomcharge/be_protected_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecomcharge/be_protected_client/labels{/name}","releases_url":"https://api.github.com/repos/ecomcharge/be_protected_client/releases{/id}","created_at":"2014-04-14T13:09:25Z","updated_at":"2014-07-16T08:44:36Z","pushed_at":"2014-09-30T12:02:13Z","git_url":"git://github.com/ecomcharge/be_protected_client.git","ssh_url":"git@github.com:ecomcharge/be_protected_client.git","clone_url":"https://github.com/ecomcharge/be_protected_client.git","svn_url":"https://github.com/ecomcharge/be_protected_client","homepage":null,"size":507,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ecomcharge:master","ref":"master","sha":"3de669b0c98d483779241ae94c85806e8629687e","user":{"login":"ecomcharge","id":3842225,"avatar_url":"https://avatars.githubusercontent.com/u/3842225?v=2","gravatar_id":"","url":"https://api.github.com/users/ecomcharge","html_url":"https://github.com/ecomcharge","followers_url":"https://api.github.com/users/ecomcharge/followers","following_url":"https://api.github.com/users/ecomcharge/following{/other_user}","gists_url":"https://api.github.com/users/ecomcharge/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomcharge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomcharge/subscriptions","organizations_url":"https://api.github.com/users/ecomcharge/orgs","repos_url":"https://api.github.com/users/ecomcharge/repos","events_url":"https://api.github.com/users/ecomcharge/events{/privacy}","received_events_url":"https://api.github.com/users/ecomcharge/received_events","type":"User","site_admin":false},"repo":{"id":18760921,"name":"be_protected_client","full_name":"ecomcharge/be_protected_client","owner":{"login":"ecomcharge","id":3842225,"avatar_url":"https://avatars.githubusercontent.com/u/3842225?v=2","gravatar_id":"","url":"https://api.github.com/users/ecomcharge","html_url":"https://github.com/ecomcharge","followers_url":"https://api.github.com/users/ecomcharge/followers","following_url":"https://api.github.com/users/ecomcharge/following{/other_user}","gists_url":"https://api.github.com/users/ecomcharge/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomcharge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomcharge/subscriptions","organizations_url":"https://api.github.com/users/ecomcharge/orgs","repos_url":"https://api.github.com/users/ecomcharge/repos","events_url":"https://api.github.com/users/ecomcharge/events{/privacy}","received_events_url":"https://api.github.com/users/ecomcharge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ecomcharge/be_protected_client","description":"","fork":false,"url":"https://api.github.com/repos/ecomcharge/be_protected_client","forks_url":"https://api.github.com/repos/ecomcharge/be_protected_client/forks","keys_url":"https://api.github.com/repos/ecomcharge/be_protected_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecomcharge/be_protected_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecomcharge/be_protected_client/teams","hooks_url":"https://api.github.com/repos/ecomcharge/be_protected_client/hooks","issue_events_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/events{/number}","events_url":"https://api.github.com/repos/ecomcharge/be_protected_client/events","assignees_url":"https://api.github.com/repos/ecomcharge/be_protected_client/assignees{/user}","branches_url":"https://api.github.com/repos/ecomcharge/be_protected_client/branches{/branch}","tags_url":"https://api.github.com/repos/ecomcharge/be_protected_client/tags","blobs_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecomcharge/be_protected_client/statuses/{sha}","languages_url":"https://api.github.com/repos/ecomcharge/be_protected_client/languages","stargazers_url":"https://api.github.com/repos/ecomcharge/be_protected_client/stargazers","contributors_url":"https://api.github.com/repos/ecomcharge/be_protected_client/contributors","subscribers_url":"https://api.github.com/repos/ecomcharge/be_protected_client/subscribers","subscription_url":"https://api.github.com/repos/ecomcharge/be_protected_client/subscription","commits_url":"https://api.github.com/repos/ecomcharge/be_protected_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecomcharge/be_protected_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecomcharge/be_protected_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/comments/{number}","contents_url":"https://api.github.com/repos/ecomcharge/be_protected_client/contents/{+path}","compare_url":"https://api.github.com/repos/ecomcharge/be_protected_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecomcharge/be_protected_client/merges","archive_url":"https://api.github.com/repos/ecomcharge/be_protected_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecomcharge/be_protected_client/downloads","issues_url":"https://api.github.com/repos/ecomcharge/be_protected_client/issues{/number}","pulls_url":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls{/number}","milestones_url":"https://api.github.com/repos/ecomcharge/be_protected_client/milestones{/number}","notifications_url":"https://api.github.com/repos/ecomcharge/be_protected_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecomcharge/be_protected_client/labels{/name}","releases_url":"https://api.github.com/repos/ecomcharge/be_protected_client/releases{/id}","created_at":"2014-04-14T13:09:25Z","updated_at":"2014-07-16T08:44:36Z","pushed_at":"2014-09-30T12:02:13Z","git_url":"git://github.com/ecomcharge/be_protected_client.git","ssh_url":"git@github.com:ecomcharge/be_protected_client.git","clone_url":"https://github.com/ecomcharge/be_protected_client.git","svn_url":"https://github.com/ecomcharge/be_protected_client","homepage":null,"size":507,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12"},"html":{"href":"https://github.com/ecomcharge/be_protected_client/pull/12"},"issue":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/12"},"comments":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ecomcharge/be_protected_client/statuses/ef332535aa56fe7fa45630d9b6160d63458b149a"}}}}