{"action":"opened","number":51,"pull_request":{"url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51","id":189758259,"html_url":"https://github.com/Chun-Ge/Shudong-Backend/pull/51","diff_url":"https://github.com/Chun-Ge/Shudong-Backend/pull/51.diff","patch_url":"https://github.com/Chun-Ge/Shudong-Backend/pull/51.patch","issue_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/51","number":51,"state":"open","locked":false,"title":"Feature/create post and comment","user":{"login":"Boyce-Lee","id":21015670,"avatar_url":"https://avatars2.githubusercontent.com/u/21015670?v=4","gravatar_id":"","url":"https://api.github.com/users/Boyce-Lee","html_url":"https://github.com/Boyce-Lee","followers_url":"https://api.github.com/users/Boyce-Lee/followers","following_url":"https://api.github.com/users/Boyce-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Boyce-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Boyce-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boyce-Lee/subscriptions","organizations_url":"https://api.github.com/users/Boyce-Lee/orgs","repos_url":"https://api.github.com/users/Boyce-Lee/repos","events_url":"https://api.github.com/users/Boyce-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Boyce-Lee/received_events","type":"User","site_admin":false},"body":"# what i done\r\nfinish the service/post.go and service/comment.go\r\nand fix the tiny errors in service/upvoting*\r\n\r\n# note: how to get userid in business handlers\r\ncall function  middlerwares.GetUserID(context.Context) int64 \r\nfor example\r\n``` go\r\n// in service/post.go\r\n\r\npackage service\r\n\r\nimport (\r\n\t// other packages\r\n\t\"middlewares\"\r\n)\r\n\r\n// new a post\r\nfunc CreatePost(ctx iris.Context) {\r\n\tuserID := middlewares.GetUserID(ctx)\r\n        // ...\r\n}\r\n\r\n```\r\n","created_at":"2018-05-22T18:49:46Z","updated_at":"2018-05-22T18:49:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51/commits","review_comments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51/comments","review_comment_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/51/comments","statuses_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/statuses/6369b9406fa06f97fb71c7a50d722730596540ff","head":{"label":"Chun-Ge:feature/create-post-and-comment","ref":"feature/create-post-and-comment","sha":"6369b9406fa06f97fb71c7a50d722730596540ff","user":{"login":"Chun-Ge","id":37565538,"avatar_url":"https://avatars1.githubusercontent.com/u/37565538?v=4","gravatar_id":"","url":"https://api.github.com/users/Chun-Ge","html_url":"https://github.com/Chun-Ge","followers_url":"https://api.github.com/users/Chun-Ge/followers","following_url":"https://api.github.com/users/Chun-Ge/following{/other_user}","gists_url":"https://api.github.com/users/Chun-Ge/gists{/gist_id}","starred_url":"https://api.github.com/users/Chun-Ge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chun-Ge/subscriptions","organizations_url":"https://api.github.com/users/Chun-Ge/orgs","repos_url":"https://api.github.com/users/Chun-Ge/repos","events_url":"https://api.github.com/users/Chun-Ge/events{/privacy}","received_events_url":"https://api.github.com/users/Chun-Ge/received_events","type":"Organization","site_admin":false},"repo":{"id":127073891,"name":"Shudong-Backend","full_name":"Chun-Ge/Shudong-Backend","owner":{"login":"Chun-Ge","id":37565538,"avatar_url":"https://avatars1.githubusercontent.com/u/37565538?v=4","gravatar_id":"","url":"https://api.github.com/users/Chun-Ge","html_url":"https://github.com/Chun-Ge","followers_url":"https://api.github.com/users/Chun-Ge/followers","following_url":"https://api.github.com/users/Chun-Ge/following{/other_user}","gists_url":"https://api.github.com/users/Chun-Ge/gists{/gist_id}","starred_url":"https://api.github.com/users/Chun-Ge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chun-Ge/subscriptions","organizations_url":"https://api.github.com/users/Chun-Ge/orgs","repos_url":"https://api.github.com/users/Chun-Ge/repos","events_url":"https://api.github.com/users/Chun-Ge/events{/privacy}","received_events_url":"https://api.github.com/users/Chun-Ge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Chun-Ge/Shudong-Backend","description":"Server Side of SYSU Chun-Ge Shudong (TreeHole????)","fork":false,"url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend","forks_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/forks","keys_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/teams","hooks_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/hooks","issue_events_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/events{/number}","events_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/events","assignees_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/assignees{/user}","branches_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/branches{/branch}","tags_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/tags","blobs_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/languages","stargazers_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/stargazers","contributors_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/contributors","subscribers_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/subscribers","subscription_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/subscription","commits_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/contents/{+path}","compare_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/merges","archive_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/downloads","issues_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues{/number}","pulls_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/labels{/name}","releases_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/releases{/id}","deployments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/deployments","created_at":"2018-03-28T02:44:40Z","updated_at":"2018-05-22T11:38:16Z","pushed_at":"2018-05-22T18:42:39Z","git_url":"git://github.com/Chun-Ge/Shudong-Backend.git","ssh_url":"git@github.com:Chun-Ge/Shudong-Backend.git","clone_url":"https://github.com/Chun-Ge/Shudong-Backend.git","svn_url":"https://github.com/Chun-Ge/Shudong-Backend","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"dev"}},"base":{"label":"Chun-Ge:dev","ref":"dev","sha":"f218ec4106e334c04d3b204f8982e586bcd5e359","user":{"login":"Chun-Ge","id":37565538,"avatar_url":"https://avatars1.githubusercontent.com/u/37565538?v=4","gravatar_id":"","url":"https://api.github.com/users/Chun-Ge","html_url":"https://github.com/Chun-Ge","followers_url":"https://api.github.com/users/Chun-Ge/followers","following_url":"https://api.github.com/users/Chun-Ge/following{/other_user}","gists_url":"https://api.github.com/users/Chun-Ge/gists{/gist_id}","starred_url":"https://api.github.com/users/Chun-Ge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chun-Ge/subscriptions","organizations_url":"https://api.github.com/users/Chun-Ge/orgs","repos_url":"https://api.github.com/users/Chun-Ge/repos","events_url":"https://api.github.com/users/Chun-Ge/events{/privacy}","received_events_url":"https://api.github.com/users/Chun-Ge/received_events","type":"Organization","site_admin":false},"repo":{"id":127073891,"name":"Shudong-Backend","full_name":"Chun-Ge/Shudong-Backend","owner":{"login":"Chun-Ge","id":37565538,"avatar_url":"https://avatars1.githubusercontent.com/u/37565538?v=4","gravatar_id":"","url":"https://api.github.com/users/Chun-Ge","html_url":"https://github.com/Chun-Ge","followers_url":"https://api.github.com/users/Chun-Ge/followers","following_url":"https://api.github.com/users/Chun-Ge/following{/other_user}","gists_url":"https://api.github.com/users/Chun-Ge/gists{/gist_id}","starred_url":"https://api.github.com/users/Chun-Ge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chun-Ge/subscriptions","organizations_url":"https://api.github.com/users/Chun-Ge/orgs","repos_url":"https://api.github.com/users/Chun-Ge/repos","events_url":"https://api.github.com/users/Chun-Ge/events{/privacy}","received_events_url":"https://api.github.com/users/Chun-Ge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Chun-Ge/Shudong-Backend","description":"Server Side of SYSU Chun-Ge Shudong (TreeHole????)","fork":false,"url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend","forks_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/forks","keys_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/teams","hooks_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/hooks","issue_events_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/events{/number}","events_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/events","assignees_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/assignees{/user}","branches_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/branches{/branch}","tags_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/tags","blobs_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/languages","stargazers_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/stargazers","contributors_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/contributors","subscribers_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/subscribers","subscription_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/subscription","commits_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/contents/{+path}","compare_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/merges","archive_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/downloads","issues_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues{/number}","pulls_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/labels{/name}","releases_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/releases{/id}","deployments_url":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/deployments","created_at":"2018-03-28T02:44:40Z","updated_at":"2018-05-22T11:38:16Z","pushed_at":"2018-05-22T18:42:39Z","git_url":"git://github.com/Chun-Ge/Shudong-Backend.git","ssh_url":"git@github.com:Chun-Ge/Shudong-Backend.git","clone_url":"https://github.com/Chun-Ge/Shudong-Backend.git","svn_url":"https://github.com/Chun-Ge/Shudong-Backend","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51"},"html":{"href":"https://github.com/Chun-Ge/Shudong-Backend/pull/51"},"issue":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/51"},"comments":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/Chun-Ge/Shudong-Backend/statuses/6369b9406fa06f97fb71c7a50d722730596540ff"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":151,"deletions":2,"changed_files":7}}
{"actor":{"display_login":"Boyce-Lee"}}