{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/theplant/resources/pulls/11","id":87829431,"html_url":"https://github.com/theplant/resources/pull/11","diff_url":"https://github.com/theplant/resources/pull/11.diff","patch_url":"https://github.com/theplant/resources/pull/11.patch","issue_url":"https://api.github.com/repos/theplant/resources/issues/11","number":11,"state":"open","locked":false,"title":"Get database connection from request context (WIP)","user":{"login":"fengjh","id":349931,"avatar_url":"https://avatars.githubusercontent.com/u/349931?v=3","gravatar_id":"","url":"https://api.github.com/users/fengjh","html_url":"https://github.com/fengjh","followers_url":"https://api.github.com/users/fengjh/followers","following_url":"https://api.github.com/users/fengjh/following{/other_user}","gists_url":"https://api.github.com/users/fengjh/gists{/gist_id}","starred_url":"https://api.github.com/users/fengjh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengjh/subscriptions","organizations_url":"https://api.github.com/users/fengjh/orgs","repos_url":"https://api.github.com/users/fengjh/repos","events_url":"https://api.github.com/users/fengjh/events{/privacy}","received_events_url":"https://api.github.com/users/fengjh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-04T03:46:27Z","updated_at":"2016-10-04T03:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c5e69ed574ab6068580a36cbd9137dd62bebd49","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theplant/resources/pulls/11/commits","review_comments_url":"https://api.github.com/repos/theplant/resources/pulls/11/comments","review_comment_url":"https://api.github.com/repos/theplant/resources/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theplant/resources/issues/11/comments","statuses_url":"https://api.github.com/repos/theplant/resources/statuses/475221b4028c7265845221890a1db9725149ddbf","head":{"label":"theplant:using-db-inside-contexts","ref":"using-db-inside-contexts","sha":"475221b4028c7265845221890a1db9725149ddbf","user":{"login":"theplant","id":644152,"avatar_url":"https://avatars.githubusercontent.com/u/644152?v=3","gravatar_id":"","url":"https://api.github.com/users/theplant","html_url":"https://github.com/theplant","followers_url":"https://api.github.com/users/theplant/followers","following_url":"https://api.github.com/users/theplant/following{/other_user}","gists_url":"https://api.github.com/users/theplant/gists{/gist_id}","starred_url":"https://api.github.com/users/theplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theplant/subscriptions","organizations_url":"https://api.github.com/users/theplant/orgs","repos_url":"https://api.github.com/users/theplant/repos","events_url":"https://api.github.com/users/theplant/events{/privacy}","received_events_url":"https://api.github.com/users/theplant/received_events","type":"Organization","site_admin":false},"repo":{"id":46956962,"name":"resources","full_name":"theplant/resources","owner":{"login":"theplant","id":644152,"avatar_url":"https://avatars.githubusercontent.com/u/644152?v=3","gravatar_id":"","url":"https://api.github.com/users/theplant","html_url":"https://github.com/theplant","followers_url":"https://api.github.com/users/theplant/followers","following_url":"https://api.github.com/users/theplant/following{/other_user}","gists_url":"https://api.github.com/users/theplant/gists{/gist_id}","starred_url":"https://api.github.com/users/theplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theplant/subscriptions","organizations_url":"https://api.github.com/users/theplant/orgs","repos_url":"https://api.github.com/users/theplant/repos","events_url":"https://api.github.com/users/theplant/events{/privacy}","received_events_url":"https://api.github.com/users/theplant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theplant/resources","description":"Generic RESTful API handlers for Gorm-backed structs ","fork":false,"url":"https://api.github.com/repos/theplant/resources","forks_url":"https://api.github.com/repos/theplant/resources/forks","keys_url":"https://api.github.com/repos/theplant/resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theplant/resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theplant/resources/teams","hooks_url":"https://api.github.com/repos/theplant/resources/hooks","issue_events_url":"https://api.github.com/repos/theplant/resources/issues/events{/number}","events_url":"https://api.github.com/repos/theplant/resources/events","assignees_url":"https://api.github.com/repos/theplant/resources/assignees{/user}","branches_url":"https://api.github.com/repos/theplant/resources/branches{/branch}","tags_url":"https://api.github.com/repos/theplant/resources/tags","blobs_url":"https://api.github.com/repos/theplant/resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theplant/resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theplant/resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/theplant/resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theplant/resources/statuses/{sha}","languages_url":"https://api.github.com/repos/theplant/resources/languages","stargazers_url":"https://api.github.com/repos/theplant/resources/stargazers","contributors_url":"https://api.github.com/repos/theplant/resources/contributors","subscribers_url":"https://api.github.com/repos/theplant/resources/subscribers","subscription_url":"https://api.github.com/repos/theplant/resources/subscription","commits_url":"https://api.github.com/repos/theplant/resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/theplant/resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/theplant/resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/theplant/resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/theplant/resources/contents/{+path}","compare_url":"https://api.github.com/repos/theplant/resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theplant/resources/merges","archive_url":"https://api.github.com/repos/theplant/resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theplant/resources/downloads","issues_url":"https://api.github.com/repos/theplant/resources/issues{/number}","pulls_url":"https://api.github.com/repos/theplant/resources/pulls{/number}","milestones_url":"https://api.github.com/repos/theplant/resources/milestones{/number}","notifications_url":"https://api.github.com/repos/theplant/resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theplant/resources/labels{/name}","releases_url":"https://api.github.com/repos/theplant/resources/releases{/id}","deployments_url":"https://api.github.com/repos/theplant/resources/deployments","created_at":"2015-11-27T03:06:09Z","updated_at":"2016-04-11T03:00:55Z","pushed_at":"2016-10-04T03:46:27Z","git_url":"git://github.com/theplant/resources.git","ssh_url":"git@github.com:theplant/resources.git","clone_url":"https://github.com/theplant/resources.git","svn_url":"https://github.com/theplant/resources","homepage":null,"size":14,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"theplant:master","ref":"master","sha":"6d9cb4cc56482c3cd63894d6c40fac28291462d4","user":{"login":"theplant","id":644152,"avatar_url":"https://avatars.githubusercontent.com/u/644152?v=3","gravatar_id":"","url":"https://api.github.com/users/theplant","html_url":"https://github.com/theplant","followers_url":"https://api.github.com/users/theplant/followers","following_url":"https://api.github.com/users/theplant/following{/other_user}","gists_url":"https://api.github.com/users/theplant/gists{/gist_id}","starred_url":"https://api.github.com/users/theplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theplant/subscriptions","organizations_url":"https://api.github.com/users/theplant/orgs","repos_url":"https://api.github.com/users/theplant/repos","events_url":"https://api.github.com/users/theplant/events{/privacy}","received_events_url":"https://api.github.com/users/theplant/received_events","type":"Organization","site_admin":false},"repo":{"id":46956962,"name":"resources","full_name":"theplant/resources","owner":{"login":"theplant","id":644152,"avatar_url":"https://avatars.githubusercontent.com/u/644152?v=3","gravatar_id":"","url":"https://api.github.com/users/theplant","html_url":"https://github.com/theplant","followers_url":"https://api.github.com/users/theplant/followers","following_url":"https://api.github.com/users/theplant/following{/other_user}","gists_url":"https://api.github.com/users/theplant/gists{/gist_id}","starred_url":"https://api.github.com/users/theplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theplant/subscriptions","organizations_url":"https://api.github.com/users/theplant/orgs","repos_url":"https://api.github.com/users/theplant/repos","events_url":"https://api.github.com/users/theplant/events{/privacy}","received_events_url":"https://api.github.com/users/theplant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theplant/resources","description":"Generic RESTful API handlers for Gorm-backed structs ","fork":false,"url":"https://api.github.com/repos/theplant/resources","forks_url":"https://api.github.com/repos/theplant/resources/forks","keys_url":"https://api.github.com/repos/theplant/resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theplant/resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theplant/resources/teams","hooks_url":"https://api.github.com/repos/theplant/resources/hooks","issue_events_url":"https://api.github.com/repos/theplant/resources/issues/events{/number}","events_url":"https://api.github.com/repos/theplant/resources/events","assignees_url":"https://api.github.com/repos/theplant/resources/assignees{/user}","branches_url":"https://api.github.com/repos/theplant/resources/branches{/branch}","tags_url":"https://api.github.com/repos/theplant/resources/tags","blobs_url":"https://api.github.com/repos/theplant/resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theplant/resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theplant/resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/theplant/resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theplant/resources/statuses/{sha}","languages_url":"https://api.github.com/repos/theplant/resources/languages","stargazers_url":"https://api.github.com/repos/theplant/resources/stargazers","contributors_url":"https://api.github.com/repos/theplant/resources/contributors","subscribers_url":"https://api.github.com/repos/theplant/resources/subscribers","subscription_url":"https://api.github.com/repos/theplant/resources/subscription","commits_url":"https://api.github.com/repos/theplant/resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/theplant/resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/theplant/resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/theplant/resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/theplant/resources/contents/{+path}","compare_url":"https://api.github.com/repos/theplant/resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theplant/resources/merges","archive_url":"https://api.github.com/repos/theplant/resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theplant/resources/downloads","issues_url":"https://api.github.com/repos/theplant/resources/issues{/number}","pulls_url":"https://api.github.com/repos/theplant/resources/pulls{/number}","milestones_url":"https://api.github.com/repos/theplant/resources/milestones{/number}","notifications_url":"https://api.github.com/repos/theplant/resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theplant/resources/labels{/name}","releases_url":"https://api.github.com/repos/theplant/resources/releases{/id}","deployments_url":"https://api.github.com/repos/theplant/resources/deployments","created_at":"2015-11-27T03:06:09Z","updated_at":"2016-04-11T03:00:55Z","pushed_at":"2016-10-04T03:46:27Z","git_url":"git://github.com/theplant/resources.git","ssh_url":"git@github.com:theplant/resources.git","clone_url":"https://github.com/theplant/resources.git","svn_url":"https://github.com/theplant/resources","homepage":null,"size":14,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theplant/resources/pulls/11"},"html":{"href":"https://github.com/theplant/resources/pull/11"},"issue":{"href":"https://api.github.com/repos/theplant/resources/issues/11"},"comments":{"href":"https://api.github.com/repos/theplant/resources/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/theplant/resources/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/theplant/resources/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theplant/resources/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/theplant/resources/statuses/475221b4028c7265845221890a1db9725149ddbf"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":7,"changed_files":4}}
{"actor":{"display_login":"fengjh"}}