{"action":"opened","number":520,"pull_request":{"url":"https://api.github.com/repos/jinzhu/gorm/pulls/520","id":37020721,"html_url":"https://github.com/jinzhu/gorm/pull/520","diff_url":"https://github.com/jinzhu/gorm/pull/520.diff","patch_url":"https://github.com/jinzhu/gorm/pull/520.patch","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/520","number":520,"state":"open","locked":false,"title":"Support for preload of Struct Ptr","user":{"login":"crystalin","id":329248,"avatar_url":"https://avatars.githubusercontent.com/u/329248?v=3","gravatar_id":"","url":"https://api.github.com/users/crystalin","html_url":"https://github.com/crystalin","followers_url":"https://api.github.com/users/crystalin/followers","following_url":"https://api.github.com/users/crystalin/following{/other_user}","gists_url":"https://api.github.com/users/crystalin/gists{/gist_id}","starred_url":"https://api.github.com/users/crystalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystalin/subscriptions","organizations_url":"https://api.github.com/users/crystalin/orgs","repos_url":"https://api.github.com/users/crystalin/repos","events_url":"https://api.github.com/users/crystalin/events{/privacy}","received_events_url":"https://api.github.com/users/crystalin/received_events","type":"User","site_admin":false},"body":"This fixes the issue when preloading .Preload(\"Project.Repositories\").Find(&[]User{})\r\nwith \r\ntype User struct {\r\n  Project *Project\r\n}\r\n\r\ntype Project struct {\r\n  Repositories []Repository\r\n}\r\n\r\ntype Repository struct {\r\n...\r\n}","created_at":"2015-06-05T10:55:39Z","updated_at":"2015-06-05T10:55:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jinzhu/gorm/pulls/520/commits","review_comments_url":"https://api.github.com/repos/jinzhu/gorm/pulls/520/comments","review_comment_url":"https://api.github.com/repos/jinzhu/gorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/520/comments","statuses_url":"https://api.github.com/repos/jinzhu/gorm/statuses/f05a6b37949f3a28f07debeaa25c14792323c7a8","head":{"label":"crystalin:master","ref":"master","sha":"f05a6b37949f3a28f07debeaa25c14792323c7a8","user":{"login":"crystalin","id":329248,"avatar_url":"https://avatars.githubusercontent.com/u/329248?v=3","gravatar_id":"","url":"https://api.github.com/users/crystalin","html_url":"https://github.com/crystalin","followers_url":"https://api.github.com/users/crystalin/followers","following_url":"https://api.github.com/users/crystalin/following{/other_user}","gists_url":"https://api.github.com/users/crystalin/gists{/gist_id}","starred_url":"https://api.github.com/users/crystalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystalin/subscriptions","organizations_url":"https://api.github.com/users/crystalin/orgs","repos_url":"https://api.github.com/users/crystalin/repos","events_url":"https://api.github.com/users/crystalin/events{/privacy}","received_events_url":"https://api.github.com/users/crystalin/received_events","type":"User","site_admin":false},"repo":{"id":36927716,"name":"gorm","full_name":"crystalin/gorm","owner":{"login":"crystalin","id":329248,"avatar_url":"https://avatars.githubusercontent.com/u/329248?v=3","gravatar_id":"","url":"https://api.github.com/users/crystalin","html_url":"https://github.com/crystalin","followers_url":"https://api.github.com/users/crystalin/followers","following_url":"https://api.github.com/users/crystalin/following{/other_user}","gists_url":"https://api.github.com/users/crystalin/gists{/gist_id}","starred_url":"https://api.github.com/users/crystalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystalin/subscriptions","organizations_url":"https://api.github.com/users/crystalin/orgs","repos_url":"https://api.github.com/users/crystalin/repos","events_url":"https://api.github.com/users/crystalin/events{/privacy}","received_events_url":"https://api.github.com/users/crystalin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crystalin/gorm","description":"The fantastic ORM library for Golang, aims to be developer friendly","fork":true,"url":"https://api.github.com/repos/crystalin/gorm","forks_url":"https://api.github.com/repos/crystalin/gorm/forks","keys_url":"https://api.github.com/repos/crystalin/gorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crystalin/gorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crystalin/gorm/teams","hooks_url":"https://api.github.com/repos/crystalin/gorm/hooks","issue_events_url":"https://api.github.com/repos/crystalin/gorm/issues/events{/number}","events_url":"https://api.github.com/repos/crystalin/gorm/events","assignees_url":"https://api.github.com/repos/crystalin/gorm/assignees{/user}","branches_url":"https://api.github.com/repos/crystalin/gorm/branches{/branch}","tags_url":"https://api.github.com/repos/crystalin/gorm/tags","blobs_url":"https://api.github.com/repos/crystalin/gorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crystalin/gorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crystalin/gorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/crystalin/gorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crystalin/gorm/statuses/{sha}","languages_url":"https://api.github.com/repos/crystalin/gorm/languages","stargazers_url":"https://api.github.com/repos/crystalin/gorm/stargazers","contributors_url":"https://api.github.com/repos/crystalin/gorm/contributors","subscribers_url":"https://api.github.com/repos/crystalin/gorm/subscribers","subscription_url":"https://api.github.com/repos/crystalin/gorm/subscription","commits_url":"https://api.github.com/repos/crystalin/gorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/crystalin/gorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/crystalin/gorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/crystalin/gorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/crystalin/gorm/contents/{+path}","compare_url":"https://api.github.com/repos/crystalin/gorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crystalin/gorm/merges","archive_url":"https://api.github.com/repos/crystalin/gorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crystalin/gorm/downloads","issues_url":"https://api.github.com/repos/crystalin/gorm/issues{/number}","pulls_url":"https://api.github.com/repos/crystalin/gorm/pulls{/number}","milestones_url":"https://api.github.com/repos/crystalin/gorm/milestones{/number}","notifications_url":"https://api.github.com/repos/crystalin/gorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crystalin/gorm/labels{/name}","releases_url":"https://api.github.com/repos/crystalin/gorm/releases{/id}","created_at":"2015-06-05T10:49:53Z","updated_at":"2015-06-05T10:49:54Z","pushed_at":"2015-06-05T10:54:52Z","git_url":"git://github.com/crystalin/gorm.git","ssh_url":"git@github.com:crystalin/gorm.git","clone_url":"https://github.com/crystalin/gorm.git","svn_url":"https://github.com/crystalin/gorm","homepage":"","size":3920,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jinzhu:master","ref":"master","sha":"0b8c9f29a9e28708c17e0ef1aed71487e8bd356c","user":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"repo":{"id":13855476,"name":"gorm","full_name":"jinzhu/gorm","owner":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jinzhu/gorm","description":"The fantastic ORM library for Golang, aims to be developer friendly","fork":false,"url":"https://api.github.com/repos/jinzhu/gorm","forks_url":"https://api.github.com/repos/jinzhu/gorm/forks","keys_url":"https://api.github.com/repos/jinzhu/gorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jinzhu/gorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jinzhu/gorm/teams","hooks_url":"https://api.github.com/repos/jinzhu/gorm/hooks","issue_events_url":"https://api.github.com/repos/jinzhu/gorm/issues/events{/number}","events_url":"https://api.github.com/repos/jinzhu/gorm/events","assignees_url":"https://api.github.com/repos/jinzhu/gorm/assignees{/user}","branches_url":"https://api.github.com/repos/jinzhu/gorm/branches{/branch}","tags_url":"https://api.github.com/repos/jinzhu/gorm/tags","blobs_url":"https://api.github.com/repos/jinzhu/gorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jinzhu/gorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jinzhu/gorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jinzhu/gorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jinzhu/gorm/statuses/{sha}","languages_url":"https://api.github.com/repos/jinzhu/gorm/languages","stargazers_url":"https://api.github.com/repos/jinzhu/gorm/stargazers","contributors_url":"https://api.github.com/repos/jinzhu/gorm/contributors","subscribers_url":"https://api.github.com/repos/jinzhu/gorm/subscribers","subscription_url":"https://api.github.com/repos/jinzhu/gorm/subscription","commits_url":"https://api.github.com/repos/jinzhu/gorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jinzhu/gorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jinzhu/gorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jinzhu/gorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jinzhu/gorm/contents/{+path}","compare_url":"https://api.github.com/repos/jinzhu/gorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jinzhu/gorm/merges","archive_url":"https://api.github.com/repos/jinzhu/gorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jinzhu/gorm/downloads","issues_url":"https://api.github.com/repos/jinzhu/gorm/issues{/number}","pulls_url":"https://api.github.com/repos/jinzhu/gorm/pulls{/number}","milestones_url":"https://api.github.com/repos/jinzhu/gorm/milestones{/number}","notifications_url":"https://api.github.com/repos/jinzhu/gorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jinzhu/gorm/labels{/name}","releases_url":"https://api.github.com/repos/jinzhu/gorm/releases{/id}","created_at":"2013-10-25T08:31:38Z","updated_at":"2015-06-05T06:02:56Z","pushed_at":"2015-06-05T10:55:39Z","git_url":"git://github.com/jinzhu/gorm.git","ssh_url":"git@github.com:jinzhu/gorm.git","clone_url":"https://github.com/jinzhu/gorm.git","svn_url":"https://github.com/jinzhu/gorm","homepage":"","size":3920,"stargazers_count":1963,"watchers_count":1963,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":204,"mirror_url":null,"open_issues_count":42,"forks":204,"open_issues":42,"watchers":1963,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/520"},"html":{"href":"https://github.com/jinzhu/gorm/pull/520"},"issue":{"href":"https://api.github.com/repos/jinzhu/gorm/issues/520"},"comments":{"href":"https://api.github.com/repos/jinzhu/gorm/issues/520/comments"},"review_comments":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/520/comments"},"review_comment":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jinzhu/gorm/pulls/520/commits"},"statuses":{"href":"https://api.github.com/repos/jinzhu/gorm/statuses/f05a6b37949f3a28f07debeaa25c14792323c7a8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}