{"action":"opened","number":35,"pull_request":{"url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/35","id":332778873,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMyNzc4ODcz","html_url":"https://github.com/openshift-online/ocm-api-metamodel/pull/35","diff_url":"https://github.com/openshift-online/ocm-api-metamodel/pull/35.diff","patch_url":"https://github.com/openshift-online/ocm-api-metamodel/pull/35.patch","issue_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/35","number":35,"state":"open","locked":false,"title":"Send not found when server returns nil target","user":{"login":"jhernand","id":1423971,"node_id":"MDQ6VXNlcjE0MjM5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1423971?v=4","gravatar_id":"","url":"https://api.github.com/users/jhernand","html_url":"https://github.com/jhernand","followers_url":"https://api.github.com/users/jhernand/followers","following_url":"https://api.github.com/users/jhernand/following{/other_user}","gists_url":"https://api.github.com/users/jhernand/gists{/gist_id}","starred_url":"https://api.github.com/users/jhernand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhernand/subscriptions","organizations_url":"https://api.github.com/users/jhernand/orgs","repos_url":"https://api.github.com/users/jhernand/repos","events_url":"https://api.github.com/users/jhernand/events{/privacy}","received_events_url":"https://api.github.com/users/jhernand/received_events","type":"User","site_admin":false},"body":"Currently the HTTP adaters don't check if the value returned by locators\r\nis `nil`. That results in a panic when that happens. To avoid that this\r\npatch changes the generated code so that will check if the returned\r\nvalue is `nil` and will send a 404 error response if it is.","created_at":"2019-10-26T16:09:30Z","updated_at":"2019-10-26T16:09:30Z","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/openshift-online/ocm-api-metamodel/pulls/35/commits","review_comments_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/35/comments","review_comment_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/35/comments","statuses_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/statuses/eff7c893ce89c6ad4c38900873cc13b818174354","head":{"label":"jhernand:send_not_found_when_server_returns_nil_target","ref":"send_not_found_when_server_returns_nil_target","sha":"eff7c893ce89c6ad4c38900873cc13b818174354","user":{"login":"jhernand","id":1423971,"node_id":"MDQ6VXNlcjE0MjM5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1423971?v=4","gravatar_id":"","url":"https://api.github.com/users/jhernand","html_url":"https://github.com/jhernand","followers_url":"https://api.github.com/users/jhernand/followers","following_url":"https://api.github.com/users/jhernand/following{/other_user}","gists_url":"https://api.github.com/users/jhernand/gists{/gist_id}","starred_url":"https://api.github.com/users/jhernand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhernand/subscriptions","organizations_url":"https://api.github.com/users/jhernand/orgs","repos_url":"https://api.github.com/users/jhernand/repos","events_url":"https://api.github.com/users/jhernand/events{/privacy}","received_events_url":"https://api.github.com/users/jhernand/received_events","type":"User","site_admin":false},"repo":{"id":204698144,"node_id":"MDEwOlJlcG9zaXRvcnkyMDQ2OTgxNDQ=","name":"ocm-api-metamodel","full_name":"jhernand/ocm-api-metamodel","private":false,"owner":{"login":"jhernand","id":1423971,"node_id":"MDQ6VXNlcjE0MjM5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1423971?v=4","gravatar_id":"","url":"https://api.github.com/users/jhernand","html_url":"https://github.com/jhernand","followers_url":"https://api.github.com/users/jhernand/followers","following_url":"https://api.github.com/users/jhernand/following{/other_user}","gists_url":"https://api.github.com/users/jhernand/gists{/gist_id}","starred_url":"https://api.github.com/users/jhernand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhernand/subscriptions","organizations_url":"https://api.github.com/users/jhernand/orgs","repos_url":"https://api.github.com/users/jhernand/repos","events_url":"https://api.github.com/users/jhernand/events{/privacy}","received_events_url":"https://api.github.com/users/jhernand/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jhernand/ocm-api-metamodel","description":null,"fork":true,"url":"https://api.github.com/repos/jhernand/ocm-api-metamodel","forks_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/forks","keys_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/teams","hooks_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/hooks","issue_events_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/events","assignees_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/tags","blobs_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/languages","stargazers_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/stargazers","contributors_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/contributors","subscribers_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/subscribers","subscription_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/subscription","commits_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/merges","archive_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/downloads","issues_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/labels{/name}","releases_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/releases{/id}","deployments_url":"https://api.github.com/repos/jhernand/ocm-api-metamodel/deployments","created_at":"2019-08-27T12:27:11Z","updated_at":"2019-08-27T12:27:14Z","pushed_at":"2019-10-26T16:09:20Z","git_url":"git://github.com/jhernand/ocm-api-metamodel.git","ssh_url":"git@github.com:jhernand/ocm-api-metamodel.git","clone_url":"https://github.com/jhernand/ocm-api-metamodel.git","svn_url":"https://github.com/jhernand/ocm-api-metamodel","homepage":null,"size":124,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift-online:master","ref":"master","sha":"962423165e34e0e824fa2d61a7762c99e32c13f2","user":{"login":"openshift-online","id":26802226,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2ODAyMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/26802226?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift-online","html_url":"https://github.com/openshift-online","followers_url":"https://api.github.com/users/openshift-online/followers","following_url":"https://api.github.com/users/openshift-online/following{/other_user}","gists_url":"https://api.github.com/users/openshift-online/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-online/subscriptions","organizations_url":"https://api.github.com/users/openshift-online/orgs","repos_url":"https://api.github.com/users/openshift-online/repos","events_url":"https://api.github.com/users/openshift-online/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-online/received_events","type":"Organization","site_admin":false},"repo":{"id":204694430,"node_id":"MDEwOlJlcG9zaXRvcnkyMDQ2OTQ0MzA=","name":"ocm-api-metamodel","full_name":"openshift-online/ocm-api-metamodel","private":false,"owner":{"login":"openshift-online","id":26802226,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2ODAyMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/26802226?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift-online","html_url":"https://github.com/openshift-online","followers_url":"https://api.github.com/users/openshift-online/followers","following_url":"https://api.github.com/users/openshift-online/following{/other_user}","gists_url":"https://api.github.com/users/openshift-online/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-online/subscriptions","organizations_url":"https://api.github.com/users/openshift-online/orgs","repos_url":"https://api.github.com/users/openshift-online/repos","events_url":"https://api.github.com/users/openshift-online/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-online/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openshift-online/ocm-api-metamodel","description":null,"fork":false,"url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel","forks_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/forks","keys_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/teams","hooks_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/hooks","issue_events_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/events","assignees_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/tags","blobs_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/languages","stargazers_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/stargazers","contributors_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/contributors","subscribers_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/subscribers","subscription_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/subscription","commits_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/merges","archive_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/downloads","issues_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/labels{/name}","releases_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/releases{/id}","deployments_url":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/deployments","created_at":"2019-08-27T12:05:18Z","updated_at":"2019-10-26T15:57:55Z","pushed_at":"2019-10-26T15:57:53Z","git_url":"git://github.com/openshift-online/ocm-api-metamodel.git","ssh_url":"git@github.com:openshift-online/ocm-api-metamodel.git","clone_url":"https://github.com/openshift-online/ocm-api-metamodel.git","svn_url":"https://github.com/openshift-online/ocm-api-metamodel","homepage":null,"size":180,"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":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/35"},"html":{"href":"https://github.com/openshift-online/ocm-api-metamodel/pull/35"},"issue":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/35"},"comments":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/openshift-online/ocm-api-metamodel/statuses/eff7c893ce89c6ad4c38900873cc13b818174354"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":49,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"jhernand"}}