{"action":"created","comment":{"url":"https://api.github.com/repos/CloudCom/fireauth/pulls/comments/31516892","id":31516892,"diff_hunk":"@@ -116,3 +116,27 @@ func TestGenerateClaim(t *testing.T) {\n \t\tt.Fatalf(\"Unexpected claim\\nExpect:\\t%s\\nGot:\\t%s\", expect, got)\n \t}\n }\n+\n+func TestSign(t *testing.T) {\n+\tfor _, g := range []struct {\n+\t\tkey string\n+\t\tin  string\n+\t\tout string\n+\t}{\n+\t\t{\n+\t\t\tkey: \"you cannot see me\",\n+\t\t\tin:  \"the winter is comming\",","path":"generator_test.go","position":13,"original_position":13,"commit_id":"037910802b3ccdd7b162b806d66f9134625265e8","original_commit_id":"037910802b3ccdd7b162b806d66f9134625265e8","user":{"login":"zabawaba99","id":2306786,"avatar_url":"https://avatars.githubusercontent.com/u/2306786?v=3","gravatar_id":"","url":"https://api.github.com/users/zabawaba99","html_url":"https://github.com/zabawaba99","followers_url":"https://api.github.com/users/zabawaba99/followers","following_url":"https://api.github.com/users/zabawaba99/following{/other_user}","gists_url":"https://api.github.com/users/zabawaba99/gists{/gist_id}","starred_url":"https://api.github.com/users/zabawaba99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabawaba99/subscriptions","organizations_url":"https://api.github.com/users/zabawaba99/orgs","repos_url":"https://api.github.com/users/zabawaba99/repos","events_url":"https://api.github.com/users/zabawaba99/events{/privacy}","received_events_url":"https://api.github.com/users/zabawaba99/received_events","type":"User","site_admin":false},"body":"I see what you did there. :+1:","created_at":"2015-06-02T12:31:40Z","updated_at":"2015-06-02T12:31:40Z","html_url":"https://github.com/CloudCom/fireauth/pull/7#discussion_r31516892","pull_request_url":"https://api.github.com/repos/CloudCom/fireauth/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/comments/31516892"},"html":{"href":"https://github.com/CloudCom/fireauth/pull/7#discussion_r31516892"},"pull_request":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/CloudCom/fireauth/pulls/7","id":36689201,"html_url":"https://github.com/CloudCom/fireauth/pull/7","diff_url":"https://github.com/CloudCom/fireauth/pull/7.diff","patch_url":"https://github.com/CloudCom/fireauth/pull/7.patch","issue_url":"https://api.github.com/repos/CloudCom/fireauth/issues/7","number":7,"state":"open","locked":false,"title":"fix sign function and add corresponding unittest","user":{"login":"hsinhoyeh","id":2792682,"avatar_url":"https://avatars.githubusercontent.com/u/2792682?v=3","gravatar_id":"","url":"https://api.github.com/users/hsinhoyeh","html_url":"https://github.com/hsinhoyeh","followers_url":"https://api.github.com/users/hsinhoyeh/followers","following_url":"https://api.github.com/users/hsinhoyeh/following{/other_user}","gists_url":"https://api.github.com/users/hsinhoyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsinhoyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsinhoyeh/subscriptions","organizations_url":"https://api.github.com/users/hsinhoyeh/orgs","repos_url":"https://api.github.com/users/hsinhoyeh/repos","events_url":"https://api.github.com/users/hsinhoyeh/events{/privacy}","received_events_url":"https://api.github.com/users/hsinhoyeh/received_events","type":"User","site_admin":false},"body":"this PR is for #6, thanks","created_at":"2015-06-02T02:16:55Z","updated_at":"2015-06-02T12:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07178c341a32a460b7489546306bfe3709d9aab5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CloudCom/fireauth/pulls/7/commits","review_comments_url":"https://api.github.com/repos/CloudCom/fireauth/pulls/7/comments","review_comment_url":"https://api.github.com/repos/CloudCom/fireauth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudCom/fireauth/issues/7/comments","statuses_url":"https://api.github.com/repos/CloudCom/fireauth/statuses/037910802b3ccdd7b162b806d66f9134625265e8","head":{"label":"hsinhoyeh:fix/sign","ref":"fix/sign","sha":"037910802b3ccdd7b162b806d66f9134625265e8","user":{"login":"hsinhoyeh","id":2792682,"avatar_url":"https://avatars.githubusercontent.com/u/2792682?v=3","gravatar_id":"","url":"https://api.github.com/users/hsinhoyeh","html_url":"https://github.com/hsinhoyeh","followers_url":"https://api.github.com/users/hsinhoyeh/followers","following_url":"https://api.github.com/users/hsinhoyeh/following{/other_user}","gists_url":"https://api.github.com/users/hsinhoyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsinhoyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsinhoyeh/subscriptions","organizations_url":"https://api.github.com/users/hsinhoyeh/orgs","repos_url":"https://api.github.com/users/hsinhoyeh/repos","events_url":"https://api.github.com/users/hsinhoyeh/events{/privacy}","received_events_url":"https://api.github.com/users/hsinhoyeh/received_events","type":"User","site_admin":false},"repo":{"id":36701255,"name":"fireauth","full_name":"hsinhoyeh/fireauth","owner":{"login":"hsinhoyeh","id":2792682,"avatar_url":"https://avatars.githubusercontent.com/u/2792682?v=3","gravatar_id":"","url":"https://api.github.com/users/hsinhoyeh","html_url":"https://github.com/hsinhoyeh","followers_url":"https://api.github.com/users/hsinhoyeh/followers","following_url":"https://api.github.com/users/hsinhoyeh/following{/other_user}","gists_url":"https://api.github.com/users/hsinhoyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsinhoyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsinhoyeh/subscriptions","organizations_url":"https://api.github.com/users/hsinhoyeh/orgs","repos_url":"https://api.github.com/users/hsinhoyeh/repos","events_url":"https://api.github.com/users/hsinhoyeh/events{/privacy}","received_events_url":"https://api.github.com/users/hsinhoyeh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsinhoyeh/fireauth","description":"Firebase Auth Token Generator in Go","fork":true,"url":"https://api.github.com/repos/hsinhoyeh/fireauth","forks_url":"https://api.github.com/repos/hsinhoyeh/fireauth/forks","keys_url":"https://api.github.com/repos/hsinhoyeh/fireauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsinhoyeh/fireauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsinhoyeh/fireauth/teams","hooks_url":"https://api.github.com/repos/hsinhoyeh/fireauth/hooks","issue_events_url":"https://api.github.com/repos/hsinhoyeh/fireauth/issues/events{/number}","events_url":"https://api.github.com/repos/hsinhoyeh/fireauth/events","assignees_url":"https://api.github.com/repos/hsinhoyeh/fireauth/assignees{/user}","branches_url":"https://api.github.com/repos/hsinhoyeh/fireauth/branches{/branch}","tags_url":"https://api.github.com/repos/hsinhoyeh/fireauth/tags","blobs_url":"https://api.github.com/repos/hsinhoyeh/fireauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsinhoyeh/fireauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsinhoyeh/fireauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsinhoyeh/fireauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsinhoyeh/fireauth/statuses/{sha}","languages_url":"https://api.github.com/repos/hsinhoyeh/fireauth/languages","stargazers_url":"https://api.github.com/repos/hsinhoyeh/fireauth/stargazers","contributors_url":"https://api.github.com/repos/hsinhoyeh/fireauth/contributors","subscribers_url":"https://api.github.com/repos/hsinhoyeh/fireauth/subscribers","subscription_url":"https://api.github.com/repos/hsinhoyeh/fireauth/subscription","commits_url":"https://api.github.com/repos/hsinhoyeh/fireauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsinhoyeh/fireauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsinhoyeh/fireauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsinhoyeh/fireauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsinhoyeh/fireauth/contents/{+path}","compare_url":"https://api.github.com/repos/hsinhoyeh/fireauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsinhoyeh/fireauth/merges","archive_url":"https://api.github.com/repos/hsinhoyeh/fireauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsinhoyeh/fireauth/downloads","issues_url":"https://api.github.com/repos/hsinhoyeh/fireauth/issues{/number}","pulls_url":"https://api.github.com/repos/hsinhoyeh/fireauth/pulls{/number}","milestones_url":"https://api.github.com/repos/hsinhoyeh/fireauth/milestones{/number}","notifications_url":"https://api.github.com/repos/hsinhoyeh/fireauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsinhoyeh/fireauth/labels{/name}","releases_url":"https://api.github.com/repos/hsinhoyeh/fireauth/releases{/id}","created_at":"2015-06-02T01:58:43Z","updated_at":"2015-06-02T01:58:44Z","pushed_at":"2015-06-02T02:15:09Z","git_url":"git://github.com/hsinhoyeh/fireauth.git","ssh_url":"git@github.com:hsinhoyeh/fireauth.git","clone_url":"https://github.com/hsinhoyeh/fireauth.git","svn_url":"https://github.com/hsinhoyeh/fireauth","homepage":null,"size":101,"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":"master"}},"base":{"label":"CloudCom:master","ref":"master","sha":"d0b8d47d7141dae7b5019f209ebdf4639ff8e3ef","user":{"login":"CloudCom","id":11194218,"avatar_url":"https://avatars.githubusercontent.com/u/11194218?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCom","html_url":"https://github.com/CloudCom","followers_url":"https://api.github.com/users/CloudCom/followers","following_url":"https://api.github.com/users/CloudCom/following{/other_user}","gists_url":"https://api.github.com/users/CloudCom/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCom/subscriptions","organizations_url":"https://api.github.com/users/CloudCom/orgs","repos_url":"https://api.github.com/users/CloudCom/repos","events_url":"https://api.github.com/users/CloudCom/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCom/received_events","type":"Organization","site_admin":false},"repo":{"id":31239599,"name":"fireauth","full_name":"CloudCom/fireauth","owner":{"login":"CloudCom","id":11194218,"avatar_url":"https://avatars.githubusercontent.com/u/11194218?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCom","html_url":"https://github.com/CloudCom","followers_url":"https://api.github.com/users/CloudCom/followers","following_url":"https://api.github.com/users/CloudCom/following{/other_user}","gists_url":"https://api.github.com/users/CloudCom/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCom/subscriptions","organizations_url":"https://api.github.com/users/CloudCom/orgs","repos_url":"https://api.github.com/users/CloudCom/repos","events_url":"https://api.github.com/users/CloudCom/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCom/fireauth","description":"Firebase Auth Token Generator in Go","fork":false,"url":"https://api.github.com/repos/CloudCom/fireauth","forks_url":"https://api.github.com/repos/CloudCom/fireauth/forks","keys_url":"https://api.github.com/repos/CloudCom/fireauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCom/fireauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCom/fireauth/teams","hooks_url":"https://api.github.com/repos/CloudCom/fireauth/hooks","issue_events_url":"https://api.github.com/repos/CloudCom/fireauth/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCom/fireauth/events","assignees_url":"https://api.github.com/repos/CloudCom/fireauth/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCom/fireauth/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCom/fireauth/tags","blobs_url":"https://api.github.com/repos/CloudCom/fireauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCom/fireauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCom/fireauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCom/fireauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCom/fireauth/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCom/fireauth/languages","stargazers_url":"https://api.github.com/repos/CloudCom/fireauth/stargazers","contributors_url":"https://api.github.com/repos/CloudCom/fireauth/contributors","subscribers_url":"https://api.github.com/repos/CloudCom/fireauth/subscribers","subscription_url":"https://api.github.com/repos/CloudCom/fireauth/subscription","commits_url":"https://api.github.com/repos/CloudCom/fireauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCom/fireauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCom/fireauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCom/fireauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCom/fireauth/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCom/fireauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCom/fireauth/merges","archive_url":"https://api.github.com/repos/CloudCom/fireauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCom/fireauth/downloads","issues_url":"https://api.github.com/repos/CloudCom/fireauth/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCom/fireauth/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCom/fireauth/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCom/fireauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCom/fireauth/labels{/name}","releases_url":"https://api.github.com/repos/CloudCom/fireauth/releases{/id}","created_at":"2015-02-24T01:31:49Z","updated_at":"2015-05-29T20:51:17Z","pushed_at":"2015-06-02T02:16:55Z","git_url":"git://github.com/CloudCom/fireauth.git","ssh_url":"git@github.com:CloudCom/fireauth.git","clone_url":"https://github.com/CloudCom/fireauth.git","svn_url":"https://github.com/CloudCom/fireauth","homepage":null,"size":242,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/7"},"html":{"href":"https://github.com/CloudCom/fireauth/pull/7"},"issue":{"href":"https://api.github.com/repos/CloudCom/fireauth/issues/7"},"comments":{"href":"https://api.github.com/repos/CloudCom/fireauth/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudCom/fireauth/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/CloudCom/fireauth/statuses/037910802b3ccdd7b162b806d66f9134625265e8"}}}}