{"action":"closed","number":39,"pull_request":{"url":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39","id":93457416,"html_url":"https://github.com/daoyuanedu/couponsys/pull/39","diff_url":"https://github.com/daoyuanedu/couponsys/pull/39.diff","patch_url":"https://github.com/daoyuanedu/couponsys/pull/39.patch","issue_url":"https://api.github.com/repos/daoyuanedu/couponsys/issues/39","number":39,"state":"closed","locked":false,"title":"Clean Code & Update PUT function","user":{"login":"LennyDuan","id":14853397,"avatar_url":"https://avatars.githubusercontent.com/u/14853397?v=3","gravatar_id":"","url":"https://api.github.com/users/LennyDuan","html_url":"https://github.com/LennyDuan","followers_url":"https://api.github.com/users/LennyDuan/followers","following_url":"https://api.github.com/users/LennyDuan/following{/other_user}","gists_url":"https://api.github.com/users/LennyDuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LennyDuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LennyDuan/subscriptions","organizations_url":"https://api.github.com/users/LennyDuan/orgs","repos_url":"https://api.github.com/users/LennyDuan/repos","events_url":"https://api.github.com/users/LennyDuan/events{/privacy}","received_events_url":"https://api.github.com/users/LennyDuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-13T00:41:23Z","updated_at":"2016-11-13T00:41:39Z","closed_at":"2016-11-13T00:41:39Z","merged_at":"2016-11-13T00:41:39Z","merge_commit_sha":"543b280fd3f85e8b518cc2c9c8909f55624a3777","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39/commits","review_comments_url":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39/comments","review_comment_url":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daoyuanedu/couponsys/issues/39/comments","statuses_url":"https://api.github.com/repos/daoyuanedu/couponsys/statuses/761d35e3729c78d365a893585876d1e5bf9e9472","head":{"label":"LennyDuan:master","ref":"master","sha":"761d35e3729c78d365a893585876d1e5bf9e9472","user":{"login":"LennyDuan","id":14853397,"avatar_url":"https://avatars.githubusercontent.com/u/14853397?v=3","gravatar_id":"","url":"https://api.github.com/users/LennyDuan","html_url":"https://github.com/LennyDuan","followers_url":"https://api.github.com/users/LennyDuan/followers","following_url":"https://api.github.com/users/LennyDuan/following{/other_user}","gists_url":"https://api.github.com/users/LennyDuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LennyDuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LennyDuan/subscriptions","organizations_url":"https://api.github.com/users/LennyDuan/orgs","repos_url":"https://api.github.com/users/LennyDuan/repos","events_url":"https://api.github.com/users/LennyDuan/events{/privacy}","received_events_url":"https://api.github.com/users/LennyDuan/received_events","type":"User","site_admin":false},"repo":{"id":72367377,"name":"couponsys","full_name":"LennyDuan/couponsys","owner":{"login":"LennyDuan","id":14853397,"avatar_url":"https://avatars.githubusercontent.com/u/14853397?v=3","gravatar_id":"","url":"https://api.github.com/users/LennyDuan","html_url":"https://github.com/LennyDuan","followers_url":"https://api.github.com/users/LennyDuan/followers","following_url":"https://api.github.com/users/LennyDuan/following{/other_user}","gists_url":"https://api.github.com/users/LennyDuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LennyDuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LennyDuan/subscriptions","organizations_url":"https://api.github.com/users/LennyDuan/orgs","repos_url":"https://api.github.com/users/LennyDuan/repos","events_url":"https://api.github.com/users/LennyDuan/events{/privacy}","received_events_url":"https://api.github.com/users/LennyDuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LennyDuan/couponsys","description":"The coupon service.","fork":true,"url":"https://api.github.com/repos/LennyDuan/couponsys","forks_url":"https://api.github.com/repos/LennyDuan/couponsys/forks","keys_url":"https://api.github.com/repos/LennyDuan/couponsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LennyDuan/couponsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LennyDuan/couponsys/teams","hooks_url":"https://api.github.com/repos/LennyDuan/couponsys/hooks","issue_events_url":"https://api.github.com/repos/LennyDuan/couponsys/issues/events{/number}","events_url":"https://api.github.com/repos/LennyDuan/couponsys/events","assignees_url":"https://api.github.com/repos/LennyDuan/couponsys/assignees{/user}","branches_url":"https://api.github.com/repos/LennyDuan/couponsys/branches{/branch}","tags_url":"https://api.github.com/repos/LennyDuan/couponsys/tags","blobs_url":"https://api.github.com/repos/LennyDuan/couponsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LennyDuan/couponsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LennyDuan/couponsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/LennyDuan/couponsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LennyDuan/couponsys/statuses/{sha}","languages_url":"https://api.github.com/repos/LennyDuan/couponsys/languages","stargazers_url":"https://api.github.com/repos/LennyDuan/couponsys/stargazers","contributors_url":"https://api.github.com/repos/LennyDuan/couponsys/contributors","subscribers_url":"https://api.github.com/repos/LennyDuan/couponsys/subscribers","subscription_url":"https://api.github.com/repos/LennyDuan/couponsys/subscription","commits_url":"https://api.github.com/repos/LennyDuan/couponsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/LennyDuan/couponsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/LennyDuan/couponsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/LennyDuan/couponsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/LennyDuan/couponsys/contents/{+path}","compare_url":"https://api.github.com/repos/LennyDuan/couponsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LennyDuan/couponsys/merges","archive_url":"https://api.github.com/repos/LennyDuan/couponsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LennyDuan/couponsys/downloads","issues_url":"https://api.github.com/repos/LennyDuan/couponsys/issues{/number}","pulls_url":"https://api.github.com/repos/LennyDuan/couponsys/pulls{/number}","milestones_url":"https://api.github.com/repos/LennyDuan/couponsys/milestones{/number}","notifications_url":"https://api.github.com/repos/LennyDuan/couponsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LennyDuan/couponsys/labels{/name}","releases_url":"https://api.github.com/repos/LennyDuan/couponsys/releases{/id}","deployments_url":"https://api.github.com/repos/LennyDuan/couponsys/deployments","created_at":"2016-10-30T18:29:45Z","updated_at":"2016-10-30T18:29:46Z","pushed_at":"2016-11-13T00:37:59Z","git_url":"git://github.com/LennyDuan/couponsys.git","ssh_url":"git@github.com:LennyDuan/couponsys.git","clone_url":"https://github.com/LennyDuan/couponsys.git","svn_url":"https://github.com/LennyDuan/couponsys","homepage":null,"size":153,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"daoyuanedu:dev","ref":"dev","sha":"56316be89b7be56bf296cb9cd2e7a891c8a13859","user":{"login":"daoyuanedu","id":23142728,"avatar_url":"https://avatars.githubusercontent.com/u/23142728?v=3","gravatar_id":"","url":"https://api.github.com/users/daoyuanedu","html_url":"https://github.com/daoyuanedu","followers_url":"https://api.github.com/users/daoyuanedu/followers","following_url":"https://api.github.com/users/daoyuanedu/following{/other_user}","gists_url":"https://api.github.com/users/daoyuanedu/gists{/gist_id}","starred_url":"https://api.github.com/users/daoyuanedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daoyuanedu/subscriptions","organizations_url":"https://api.github.com/users/daoyuanedu/orgs","repos_url":"https://api.github.com/users/daoyuanedu/repos","events_url":"https://api.github.com/users/daoyuanedu/events{/privacy}","received_events_url":"https://api.github.com/users/daoyuanedu/received_events","type":"Organization","site_admin":false},"repo":{"id":72307337,"name":"couponsys","full_name":"daoyuanedu/couponsys","owner":{"login":"daoyuanedu","id":23142728,"avatar_url":"https://avatars.githubusercontent.com/u/23142728?v=3","gravatar_id":"","url":"https://api.github.com/users/daoyuanedu","html_url":"https://github.com/daoyuanedu","followers_url":"https://api.github.com/users/daoyuanedu/followers","following_url":"https://api.github.com/users/daoyuanedu/following{/other_user}","gists_url":"https://api.github.com/users/daoyuanedu/gists{/gist_id}","starred_url":"https://api.github.com/users/daoyuanedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daoyuanedu/subscriptions","organizations_url":"https://api.github.com/users/daoyuanedu/orgs","repos_url":"https://api.github.com/users/daoyuanedu/repos","events_url":"https://api.github.com/users/daoyuanedu/events{/privacy}","received_events_url":"https://api.github.com/users/daoyuanedu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/daoyuanedu/couponsys","description":"The coupon service.","fork":false,"url":"https://api.github.com/repos/daoyuanedu/couponsys","forks_url":"https://api.github.com/repos/daoyuanedu/couponsys/forks","keys_url":"https://api.github.com/repos/daoyuanedu/couponsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daoyuanedu/couponsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daoyuanedu/couponsys/teams","hooks_url":"https://api.github.com/repos/daoyuanedu/couponsys/hooks","issue_events_url":"https://api.github.com/repos/daoyuanedu/couponsys/issues/events{/number}","events_url":"https://api.github.com/repos/daoyuanedu/couponsys/events","assignees_url":"https://api.github.com/repos/daoyuanedu/couponsys/assignees{/user}","branches_url":"https://api.github.com/repos/daoyuanedu/couponsys/branches{/branch}","tags_url":"https://api.github.com/repos/daoyuanedu/couponsys/tags","blobs_url":"https://api.github.com/repos/daoyuanedu/couponsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daoyuanedu/couponsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daoyuanedu/couponsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/daoyuanedu/couponsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daoyuanedu/couponsys/statuses/{sha}","languages_url":"https://api.github.com/repos/daoyuanedu/couponsys/languages","stargazers_url":"https://api.github.com/repos/daoyuanedu/couponsys/stargazers","contributors_url":"https://api.github.com/repos/daoyuanedu/couponsys/contributors","subscribers_url":"https://api.github.com/repos/daoyuanedu/couponsys/subscribers","subscription_url":"https://api.github.com/repos/daoyuanedu/couponsys/subscription","commits_url":"https://api.github.com/repos/daoyuanedu/couponsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/daoyuanedu/couponsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/daoyuanedu/couponsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/daoyuanedu/couponsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/daoyuanedu/couponsys/contents/{+path}","compare_url":"https://api.github.com/repos/daoyuanedu/couponsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daoyuanedu/couponsys/merges","archive_url":"https://api.github.com/repos/daoyuanedu/couponsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daoyuanedu/couponsys/downloads","issues_url":"https://api.github.com/repos/daoyuanedu/couponsys/issues{/number}","pulls_url":"https://api.github.com/repos/daoyuanedu/couponsys/pulls{/number}","milestones_url":"https://api.github.com/repos/daoyuanedu/couponsys/milestones{/number}","notifications_url":"https://api.github.com/repos/daoyuanedu/couponsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daoyuanedu/couponsys/labels{/name}","releases_url":"https://api.github.com/repos/daoyuanedu/couponsys/releases{/id}","deployments_url":"https://api.github.com/repos/daoyuanedu/couponsys/deployments","created_at":"2016-10-29T20:19:34Z","updated_at":"2016-10-30T15:08:33Z","pushed_at":"2016-11-13T00:41:39Z","git_url":"git://github.com/daoyuanedu/couponsys.git","ssh_url":"git@github.com:daoyuanedu/couponsys.git","clone_url":"https://github.com/daoyuanedu/couponsys.git","svn_url":"https://github.com/daoyuanedu/couponsys","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39"},"html":{"href":"https://github.com/daoyuanedu/couponsys/pull/39"},"issue":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/issues/39"},"comments":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/daoyuanedu/couponsys/statuses/761d35e3729c78d365a893585876d1e5bf9e9472"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"LennyDuan","id":14853397,"avatar_url":"https://avatars.githubusercontent.com/u/14853397?v=3","gravatar_id":"","url":"https://api.github.com/users/LennyDuan","html_url":"https://github.com/LennyDuan","followers_url":"https://api.github.com/users/LennyDuan/followers","following_url":"https://api.github.com/users/LennyDuan/following{/other_user}","gists_url":"https://api.github.com/users/LennyDuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LennyDuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LennyDuan/subscriptions","organizations_url":"https://api.github.com/users/LennyDuan/orgs","repos_url":"https://api.github.com/users/LennyDuan/repos","events_url":"https://api.github.com/users/LennyDuan/events{/privacy}","received_events_url":"https://api.github.com/users/LennyDuan/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":6,"additions":231,"deletions":33,"changed_files":11}}
{"actor":{"display_login":"LennyDuan"}}