payload: {"action":"closed","number":136,"pull_request":{"url":"https://api.github.com/repos/josiahcarlson/rom/pulls/136","id":286998256,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg2OTk4MjU2","html_url":"https://github.com/josiahcarlson/rom/pull/136","diff_url":"https://github.com/josiahcarlson/rom/pull/136.diff","patch_url":"https://github.com/josiahcarlson/rom/pull/136.patch","issue_url":"https://api.github.com/repos/josiahcarlson/rom/issues/136","number":136,"state":"closed","locked":false,"title":"get related model from relationship column","user":{"login":"Aimage","id":8190693,"node_id":"MDQ6VXNlcjgxOTA2OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8190693?v=4","gravatar_id":"","url":"https://api.github.com/users/Aimage","html_url":"https://github.com/Aimage","followers_url":"https://api.github.com/users/Aimage/followers","following_url":"https://api.github.com/users/Aimage/following{/other_user}","gists_url":"https://api.github.com/users/Aimage/gists{/gist_id}","starred_url":"https://api.github.com/users/Aimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aimage/subscriptions","organizations_url":"https://api.github.com/users/Aimage/orgs","repos_url":"https://api.github.com/users/Aimage/repos","events_url":"https://api.github.com/users/Aimage/events{/privacy}","received_events_url":"https://api.github.com/users/Aimage/received_events","type":"User","site_admin":false},"body":"This can help when we want the related model corresponding to a relationship column.\r\nPersonally I use it to automaticaly get related object in a datalayer for flask-rest-jsonapi.\r\n","created_at":"2019-06-11T09:23:28Z","updated_at":"2019-06-17T02:45:35Z","closed_at":"2019-06-17T02:45:34Z","merged_at":"2019-06-17T02:45:34Z","merge_commit_sha":"46023677e26b1cab5f54df2592936e556f4fe966","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/josiahcarlson/rom/pulls/136/commits","review_comments_url":"https://api.github.com/repos/josiahcarlson/rom/pulls/136/comments","review_comment_url":"https://api.github.com/repos/josiahcarlson/rom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/josiahcarlson/rom/issues/136/comments","statuses_url":"https://api.github.com/repos/josiahcarlson/rom/statuses/4770736c1b0e6a53234abf6a77a5cafdd5db857e","head":{"label":"Aimage:Branche_get_related_model","ref":"Branche_get_related_model","sha":"4770736c1b0e6a53234abf6a77a5cafdd5db857e","user":{"login":"Aimage","id":8190693,"node_id":"MDQ6VXNlcjgxOTA2OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8190693?v=4","gravatar_id":"","url":"https://api.github.com/users/Aimage","html_url":"https://github.com/Aimage","followers_url":"https://api.github.com/users/Aimage/followers","following_url":"https://api.github.com/users/Aimage/following{/other_user}","gists_url":"https://api.github.com/users/Aimage/gists{/gist_id}","starred_url":"https://api.github.com/users/Aimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aimage/subscriptions","organizations_url":"https://api.github.com/users/Aimage/orgs","repos_url":"https://api.github.com/users/Aimage/repos","events_url":"https://api.github.com/users/Aimage/events{/privacy}","received_events_url":"https://api.github.com/users/Aimage/received_events","type":"User","site_admin":false},"repo":{"id":191326196,"node_id":"MDEwOlJlcG9zaXRvcnkxOTEzMjYxOTY=","name":"rom","full_name":"Aimage/rom","private":false,"owner":{"login":"Aimage","id":8190693,"node_id":"MDQ6VXNlcjgxOTA2OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8190693?v=4","gravatar_id":"","url":"https://api.github.com/users/Aimage","html_url":"https://github.com/Aimage","followers_url":"https://api.github.com/users/Aimage/followers","following_url":"https://api.github.com/users/Aimage/following{/other_user}","gists_url":"https://api.github.com/users/Aimage/gists{/gist_id}","starred_url":"https://api.github.com/users/Aimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aimage/subscriptions","organizations_url":"https://api.github.com/users/Aimage/orgs","repos_url":"https://api.github.com/users/Aimage/repos","events_url":"https://api.github.com/users/Aimage/events{/privacy}","received_events_url":"https://api.github.com/users/Aimage/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Aimage/rom","description":"Redis object mapper for Python","fork":true,"url":"https://api.github.com/repos/Aimage/rom","forks_url":"https://api.github.com/repos/Aimage/rom/forks","keys_url":"https://api.github.com/repos/Aimage/rom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aimage/rom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aimage/rom/teams","hooks_url":"https://api.github.com/repos/Aimage/rom/hooks","issue_events_url":"https://api.github.com/repos/Aimage/rom/issues/events{/number}","events_url":"https://api.github.com/repos/Aimage/rom/events","assignees_url":"https://api.github.com/repos/Aimage/rom/assignees{/user}","branches_url":"https://api.github.com/repos/Aimage/rom/branches{/branch}","tags_url":"https://api.github.com/repos/Aimage/rom/tags","blobs_url":"https://api.github.com/repos/Aimage/rom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aimage/rom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aimage/rom/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aimage/rom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aimage/rom/statuses/{sha}","languages_url":"https://api.github.com/repos/Aimage/rom/languages","stargazers_url":"https://api.github.com/repos/Aimage/rom/stargazers","contributors_url":"https://api.github.com/repos/Aimage/rom/contributors","subscribers_url":"https://api.github.com/repos/Aimage/rom/subscribers","subscription_url":"https://api.github.com/repos/Aimage/rom/subscription","commits_url":"https://api.github.com/repos/Aimage/rom/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aimage/rom/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aimage/rom/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aimage/rom/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aimage/rom/contents/{+path}","compare_url":"https://api.github.com/repos/Aimage/rom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aimage/rom/merges","archive_url":"https://api.github.com/repos/Aimage/rom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aimage/rom/downloads","issues_url":"https://api.github.com/repos/Aimage/rom/issues{/number}","pulls_url":"https://api.github.com/repos/Aimage/rom/pulls{/number}","milestones_url":"https://api.github.com/repos/Aimage/rom/milestones{/number}","notifications_url":"https://api.github.com/repos/Aimage/rom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aimage/rom/labels{/name}","releases_url":"https://api.github.com/repos/Aimage/rom/releases{/id}","deployments_url":"https://api.github.com/repos/Aimage/rom/deployments","created_at":"2019-06-11T08:20:04Z","updated_at":"2019-06-11T08:20:07Z","pushed_at":"2019-06-11T09:16:39Z","git_url":"git://github.com/Aimage/rom.git","ssh_url":"git@github.com:Aimage/rom.git","clone_url":"https://github.com/Aimage/rom.git","svn_url":"https://github.com/Aimage/rom","homepage":null,"size":1231,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"josiahcarlson:master","ref":"master","sha":"4922626591bcb2af230c535d85993da27179fcf8","user":{"login":"josiahcarlson","id":209346,"node_id":"MDQ6VXNlcjIwOTM0Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/209346?v=4","gravatar_id":"","url":"https://api.github.com/users/josiahcarlson","html_url":"https://github.com/josiahcarlson","followers_url":"https://api.github.com/users/josiahcarlson/followers","following_url":"https://api.github.com/users/josiahcarlson/following{/other_user}","gists_url":"https://api.github.com/users/josiahcarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/josiahcarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josiahcarlson/subscriptions","organizations_url":"https://api.github.com/users/josiahcarlson/orgs","repos_url":"https://api.github.com/users/josiahcarlson/repos","events_url":"https://api.github.com/users/josiahcarlson/events{/privacy}","received_events_url":"https://api.github.com/users/josiahcarlson/received_events","type":"User","site_admin":false},"repo":{"id":9590543,"node_id":"MDEwOlJlcG9zaXRvcnk5NTkwNTQz","name":"rom","full_name":"josiahcarlson/rom","private":false,"owner":{"login":"josiahcarlson","id":209346,"node_id":"MDQ6VXNlcjIwOTM0Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/209346?v=4","gravatar_id":"","url":"https://api.github.com/users/josiahcarlson","html_url":"https://github.com/josiahcarlson","followers_url":"https://api.github.com/users/josiahcarlson/followers","following_url":"https://api.github.com/users/josiahcarlson/following{/other_user}","gists_url":"https://api.github.com/users/josiahcarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/josiahcarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josiahcarlson/subscriptions","organizations_url":"https://api.github.com/users/josiahcarlson/orgs","repos_url":"https://api.github.com/users/josiahcarlson/repos","events_url":"https://api.github.com/users/josiahcarlson/events{/privacy}","received_events_url":"https://api.github.com/users/josiahcarlson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/josiahcarlson/rom","description":"Redis object mapper for Python","fork":false,"url":"https://api.github.com/repos/josiahcarlson/rom","forks_url":"https://api.github.com/repos/josiahcarlson/rom/forks","keys_url":"https://api.github.com/repos/josiahcarlson/rom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/josiahcarlson/rom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/josiahcarlson/rom/teams","hooks_url":"https://api.github.com/repos/josiahcarlson/rom/hooks","issue_events_url":"https://api.github.com/repos/josiahcarlson/rom/issues/events{/number}","events_url":"https://api.github.com/repos/josiahcarlson/rom/events","assignees_url":"https://api.github.com/repos/josiahcarlson/rom/assignees{/user}","branches_url":"https://api.github.com/repos/josiahcarlson/rom/branches{/branch}","tags_url":"https://api.github.com/repos/josiahcarlson/rom/tags","blobs_url":"https://api.github.com/repos/josiahcarlson/rom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/josiahcarlson/rom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/josiahcarlson/rom/git/refs{/sha}","trees_url":"https://api.github.com/repos/josiahcarlson/rom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/josiahcarlson/rom/statuses/{sha}","languages_url":"https://api.github.com/repos/josiahcarlson/rom/languages","stargazers_url":"https://api.github.com/repos/josiahcarlson/rom/stargazers","contributors_url":"https://api.github.com/repos/josiahcarlson/rom/contributors","subscribers_url":"https://api.github.com/repos/josiahcarlson/rom/subscribers","subscription_url":"https://api.github.com/repos/josiahcarlson/rom/subscription","commits_url":"https://api.github.com/repos/josiahcarlson/rom/commits{/sha}","git_commits_url":"https://api.github.com/repos/josiahcarlson/rom/git/commits{/sha}","comments_url":"https://api.github.com/repos/josiahcarlson/rom/comments{/number}","issue_comment_url":"https://api.github.com/repos/josiahcarlson/rom/issues/comments{/number}","contents_url":"https://api.github.com/repos/josiahcarlson/rom/contents/{+path}","compare_url":"https://api.github.com/repos/josiahcarlson/rom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/josiahcarlson/rom/merges","archive_url":"https://api.github.com/repos/josiahcarlson/rom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/josiahcarlson/rom/downloads","issues_url":"https://api.github.com/repos/josiahcarlson/rom/issues{/number}","pulls_url":"https://api.github.com/repos/josiahcarlson/rom/pulls{/number}","milestones_url":"https://api.github.com/repos/josiahcarlson/rom/milestones{/number}","notifications_url":"https://api.github.com/repos/josiahcarlson/rom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/josiahcarlson/rom/labels{/name}","releases_url":"https://api.github.com/repos/josiahcarlson/rom/releases{/id}","deployments_url":"https://api.github.com/repos/josiahcarlson/rom/deployments","created_at":"2013-04-22T03:58:15Z","updated_at":"2019-06-05T05:04:27Z","pushed_at":"2019-06-17T02:45:34Z","git_url":"git://github.com/josiahcarlson/rom.git","ssh_url":"git@github.com:josiahcarlson/rom.git","clone_url":"https://github.com/josiahcarlson/rom.git","svn_url":"https://github.com/josiahcarlson/rom","homepage":null,"size":1230,"stargazers_count":303,"watchers_count":303,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":36,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":36,"open_issues":0,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/josiahcarlson/rom/pulls/136"},"html":{"href":"https://github.com/josiahcarlson/rom/pull/136"},"issue":{"href":"https://api.github.com/repos/josiahcarlson/rom/issues/136"},"comments":{"href":"https://api.github.com/repos/josiahcarlson/rom/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/josiahcarlson/rom/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/josiahcarlson/rom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/josiahcarlson/rom/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/josiahcarlson/rom/statuses/4770736c1b0e6a53234abf6a77a5cafdd5db857e"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"josiahcarlson","id":209346,"node_id":"MDQ6VXNlcjIwOTM0Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/209346?v=4","gravatar_id":"","url":"https://api.github.com/users/josiahcarlson","html_url":"https://github.com/josiahcarlson","followers_url":"https://api.github.com/users/josiahcarlson/followers","following_url":"https://api.github.com/users/josiahcarlson/following{/other_user}","gists_url":"https://api.github.com/users/josiahcarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/josiahcarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josiahcarlson/subscriptions","organizations_url":"https://api.github.com/users/josiahcarlson/orgs","repos_url":"https://api.github.com/users/josiahcarlson/repos","events_url":"https://api.github.com/users/josiahcarlson/events{/privacy}","received_events_url":"https://api.github.com/users/josiahcarlson/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":15,"deletions":0,"changed_files":1}}
other: {"actor":{"display_login":"josiahcarlson"}}