GitHub PullRequestReviewCommentEvent at 2014-10-30 19:47:09
Repository: jersey-hmac-auth
Actor: bivasdas
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/comments/19631296","id":19631296,"diff_hunk":"@@ -1,3 +1,87 @@\n #!/bin/bash\n \n-java -jar \"$(dirname \"$0\")\"/target/jersey-hmac-auth-cli-*.jar \"$@\"\n+usage()\n+{\n+cat << EOF\n+\n+usage: $0 options\n+\n+hurl is synonymous for curl with hmac auth\n+\n+OPTIONS:\n+   -h      this help message\n+   -p      auth profile to use (default points to ~/.hurl/default.conf)\n+   -a      api key \n+   -s      secret key\n+   -c      configure a current session to use a temp apikey/secret\n+   -v      verbose mode\n+\n+------------------------------------------\n+\n+EOF\n+}\n+\n+HURL_PROFILE=\"default\"\n+ARGS=\"\"\n+VERBOSE=\"\"\n+\n+while [[ $# > 0 ]]; do\n+\tkey=\"$1\"\n+\tshift\n+\tcase $key in\n+\t    -p|--profile)\n+\t    HURL_PROFILE=\"$1\"\n+\t    shift\n+\t    ;;\n+\t    -h|--help)\n+\t    usage\n+\t    ARGS=\"$ARGS $key\"\n+\t    ;;\n+\t    -a|--api-key)\n+\t    HURL_APIKEY=\"$1\"\n+\t    shift\n+\t    ;;\n+\t    -s|--secret-key)\n+\t    HURL_SECRET=\"$1\"\n+\t    shift\n+\t    ;;\n+\t    -c|--configure)\n+\t    CONFIGURE=\"true\"\n+\t    ;;\n+\t    -v|--verbose)\n+\t    VERBOSE=\"true\"\n+\t    ARGS=\"$ARGS $key\"\n+\t    ;;\n+\t    *)\n+\t\tARGS=\"$ARGS $key\"\n+\t\t;;\n+\tesac\n+done\n+\n+if [ ! -f ~/.hurl/$HURL_PROFILE.conf ]; then\n+\t[[ ! -z \"$VERBOSE\" ]] && echo \"~/.hurl/$HURL_PROFILE.conf not found, using env variables\"\n+else\n+\t[[ -z \"$HURL_APIKEY\" ]] && export HURL_APIKEY=\"$(grep apiKey ~/.hurl/$HURL_PROFILE.conf | awk '{ print $2 }')\"\n+\t[[ -z \"$HURL_SECRET\" ]] && export HURL_SECRET=\"$(grep secret ~/.hurl/$HURL_PROFILE.conf | awk '{ print $2 }')\"","path":"cli/hurl","position":66,"original_position":66,"commit_id":"05104c2f76a1af4f29a42d39586fc372ce28eca6","original_commit_id":"05104c2f76a1af4f29a42d39586fc372ce28eca6","user":{"login":"bivasdas","id":5587198,"avatar_url":"https://avatars.githubusercontent.com/u/5587198?v=2","gravatar_id":"","url":"https://api.github.com/users/bivasdas","html_url":"https://github.com/bivasdas","followers_url":"https://api.github.com/users/bivasdas/followers","following_url":"https://api.github.com/users/bivasdas/following{/other_user}","gists_url":"https://api.github.com/users/bivasdas/gists{/gist_id}","starred_url":"https://api.github.com/users/bivasdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bivasdas/subscriptions","organizations_url":"https://api.github.com/users/bivasdas/orgs","repos_url":"https://api.github.com/users/bivasdas/repos","events_url":"https://api.github.com/users/bivasdas/events{/privacy}","received_events_url":"https://api.github.com/users/bivasdas/received_events","type":"User","site_admin":false},"body":"Agree!","created_at":"2014-10-30T19:47:09Z","updated_at":"2014-10-30T19:47:09Z","html_url":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36#discussion_r19631296","pull_request_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/comments/19631296"},"html":{"href":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36#discussion_r19631296"},"pull_request":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36","id":21392069,"html_url":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36","diff_url":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36.diff","patch_url":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36.patch","issue_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/36","number":36,"state":"open","locked":false,"title":"modified hurl cli to accept auth config","user":{"login":"bivasdas","id":5587198,"avatar_url":"https://avatars.githubusercontent.com/u/5587198?v=2","gravatar_id":"","url":"https://api.github.com/users/bivasdas","html_url":"https://github.com/bivasdas","followers_url":"https://api.github.com/users/bivasdas/followers","following_url":"https://api.github.com/users/bivasdas/following{/other_user}","gists_url":"https://api.github.com/users/bivasdas/gists{/gist_id}","starred_url":"https://api.github.com/users/bivasdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bivasdas/subscriptions","organizations_url":"https://api.github.com/users/bivasdas/orgs","repos_url":"https://api.github.com/users/bivasdas/repos","events_url":"https://api.github.com/users/bivasdas/events{/privacy}","received_events_url":"https://api.github.com/users/bivasdas/received_events","type":"User","site_admin":false},"body":"  via file at ~/.hurl/default.conf\r\n  also added --configure to override them temporarily\r\n  updated cli readme","created_at":"2014-09-17T20:03:27Z","updated_at":"2014-10-30T19:47:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77daf0ff63ca7ee6e50a9c515b463ecaa39cb288","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36/commits","review_comments_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36/comments","review_comment_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/36/comments","statuses_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/statuses/05104c2f76a1af4f29a42d39586fc372ce28eca6","head":{"label":"bivasdas:local","ref":"local","sha":"05104c2f76a1af4f29a42d39586fc372ce28eca6","user":{"login":"bivasdas","id":5587198,"avatar_url":"https://avatars.githubusercontent.com/u/5587198?v=2","gravatar_id":"","url":"https://api.github.com/users/bivasdas","html_url":"https://github.com/bivasdas","followers_url":"https://api.github.com/users/bivasdas/followers","following_url":"https://api.github.com/users/bivasdas/following{/other_user}","gists_url":"https://api.github.com/users/bivasdas/gists{/gist_id}","starred_url":"https://api.github.com/users/bivasdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bivasdas/subscriptions","organizations_url":"https://api.github.com/users/bivasdas/orgs","repos_url":"https://api.github.com/users/bivasdas/repos","events_url":"https://api.github.com/users/bivasdas/events{/privacy}","received_events_url":"https://api.github.com/users/bivasdas/received_events","type":"User","site_admin":false},"repo":{"id":24160106,"name":"jersey-hmac-auth","full_name":"bivasdas/jersey-hmac-auth","owner":{"login":"bivasdas","id":5587198,"avatar_url":"https://avatars.githubusercontent.com/u/5587198?v=2","gravatar_id":"","url":"https://api.github.com/users/bivasdas","html_url":"https://github.com/bivasdas","followers_url":"https://api.github.com/users/bivasdas/followers","following_url":"https://api.github.com/users/bivasdas/following{/other_user}","gists_url":"https://api.github.com/users/bivasdas/gists{/gist_id}","starred_url":"https://api.github.com/users/bivasdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bivasdas/subscriptions","organizations_url":"https://api.github.com/users/bivasdas/orgs","repos_url":"https://api.github.com/users/bivasdas/repos","events_url":"https://api.github.com/users/bivasdas/events{/privacy}","received_events_url":"https://api.github.com/users/bivasdas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bivasdas/jersey-hmac-auth","description":"HMAC authentication for server and client","fork":true,"url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth","forks_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/forks","keys_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/teams","hooks_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/hooks","issue_events_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/issues/events{/number}","events_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/events","assignees_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/assignees{/user}","branches_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/branches{/branch}","tags_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/tags","blobs_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/languages","stargazers_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/stargazers","contributors_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/contributors","subscribers_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/subscribers","subscription_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/subscription","commits_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/issues/comments/{number}","contents_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/contents/{+path}","compare_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/merges","archive_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/downloads","issues_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/issues{/number}","pulls_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/labels{/name}","releases_url":"https://api.github.com/repos/bivasdas/jersey-hmac-auth/releases{/id}","created_at":"2014-09-17T19:56:34Z","updated_at":"2014-10-27T16:56:20Z","pushed_at":"2014-10-27T19:52:47Z","git_url":"git://github.com/bivasdas/jersey-hmac-auth.git","ssh_url":"git@github.com:bivasdas/jersey-hmac-auth.git","clone_url":"https://github.com/bivasdas/jersey-hmac-auth.git","svn_url":"https://github.com/bivasdas/jersey-hmac-auth","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"master"}},"base":{"label":"bazaarvoice:master","ref":"master","sha":"981d71a57c17b383dcd38cd1da711c4de0780e86","user":{"login":"bazaarvoice","id":152469,"avatar_url":"https://avatars.githubusercontent.com/u/152469?v=2","gravatar_id":"","url":"https://api.github.com/users/bazaarvoice","html_url":"https://github.com/bazaarvoice","followers_url":"https://api.github.com/users/bazaarvoice/followers","following_url":"https://api.github.com/users/bazaarvoice/following{/other_user}","gists_url":"https://api.github.com/users/bazaarvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/bazaarvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazaarvoice/subscriptions","organizations_url":"https://api.github.com/users/bazaarvoice/orgs","repos_url":"https://api.github.com/users/bazaarvoice/repos","events_url":"https://api.github.com/users/bazaarvoice/events{/privacy}","received_events_url":"https://api.github.com/users/bazaarvoice/received_events","type":"Organization","site_admin":false},"repo":{"id":16516859,"name":"jersey-hmac-auth","full_name":"bazaarvoice/jersey-hmac-auth","owner":{"login":"bazaarvoice","id":152469,"avatar_url":"https://avatars.githubusercontent.com/u/152469?v=2","gravatar_id":"","url":"https://api.github.com/users/bazaarvoice","html_url":"https://github.com/bazaarvoice","followers_url":"https://api.github.com/users/bazaarvoice/followers","following_url":"https://api.github.com/users/bazaarvoice/following{/other_user}","gists_url":"https://api.github.com/users/bazaarvoice/gists{/gist_id}","starred_url":"https://api.github.com/users/bazaarvoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazaarvoice/subscriptions","organizations_url":"https://api.github.com/users/bazaarvoice/orgs","repos_url":"https://api.github.com/users/bazaarvoice/repos","events_url":"https://api.github.com/users/bazaarvoice/events{/privacy}","received_events_url":"https://api.github.com/users/bazaarvoice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazaarvoice/jersey-hmac-auth","description":"HMAC authentication for server and client","fork":false,"url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth","forks_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/forks","keys_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/teams","hooks_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/hooks","issue_events_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/events{/number}","events_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/events","assignees_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/assignees{/user}","branches_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/branches{/branch}","tags_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/tags","blobs_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/languages","stargazers_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/stargazers","contributors_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/contributors","subscribers_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/subscribers","subscription_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/subscription","commits_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/comments/{number}","contents_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/contents/{+path}","compare_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/merges","archive_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/downloads","issues_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues{/number}","pulls_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/labels{/name}","releases_url":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/releases{/id}","created_at":"2014-02-04T16:02:09Z","updated_at":"2014-10-06T19:30:00Z","pushed_at":"2014-10-29T20:56:24Z","git_url":"git://github.com/bazaarvoice/jersey-hmac-auth.git","ssh_url":"git@github.com:bazaarvoice/jersey-hmac-auth.git","clone_url":"https://github.com/bazaarvoice/jersey-hmac-auth.git","svn_url":"https://github.com/bazaarvoice/jersey-hmac-auth","homepage":null,"size":3832,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36"},"html":{"href":"https://github.com/bazaarvoice/jersey-hmac-auth/pull/36"},"issue":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/36"},"comments":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/bazaarvoice/jersey-hmac-auth/statuses/05104c2f76a1af4f29a42d39586fc372ce28eca6"}}}}