{"action":"opened","number":162,"pull_request":{"url":"https://api.github.com/repos/rancherio/cattle/pulls/162","id":27982733,"html_url":"https://github.com/rancherio/cattle/pull/162","diff_url":"https://github.com/rancherio/cattle/pull/162.diff","patch_url":"https://github.com/rancherio/cattle/pull/162.patch","issue_url":"https://api.github.com/repos/rancherio/cattle/issues/162","number":162,"state":"open","locked":false,"title":"Add resource type as top level key of reply event","user":{"login":"yasker","id":3344618,"avatar_url":"https://avatars.githubusercontent.com/u/3344618?v=3","gravatar_id":"","url":"https://api.github.com/users/yasker","html_url":"https://github.com/yasker","followers_url":"https://api.github.com/users/yasker/followers","following_url":"https://api.github.com/users/yasker/following{/other_user}","gists_url":"https://api.github.com/users/yasker/gists{/gist_id}","starred_url":"https://api.github.com/users/yasker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasker/subscriptions","organizations_url":"https://api.github.com/users/yasker/orgs","repos_url":"https://api.github.com/users/yasker/repos","events_url":"https://api.github.com/users/yasker/events{/privacy}","received_events_url":"https://api.github.com/users/yasker/received_events","type":"User","site_admin":false},"body":"Fixes the issue #161\r\n\r\nCurrently the request event and reply event's format are inconsistent. The\r\nrequest event would contained a map as data, using the resource type as the top\r\nlevel key, but in the reply event's data, the top level is the fields of\r\nresources, rather than resource itself. The inconsistent is very confusing for\r\nagent communication.\r\n\r\nThis patch would enable the agent to send reply event with consistent format as\r\nrequest event, say the top level key would be resource type itself, rather than\r\nfields of resource.","created_at":"2015-01-24T21:35:37Z","updated_at":"2015-01-24T21:35:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rancherio/cattle/pulls/162/commits","review_comments_url":"https://api.github.com/repos/rancherio/cattle/pulls/162/comments","review_comment_url":"https://api.github.com/repos/rancherio/cattle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rancherio/cattle/issues/162/comments","statuses_url":"https://api.github.com/repos/rancherio/cattle/statuses/61e8b9f886b547df5b6ac1e2a57490e1ba2172a9","head":{"label":"yasker:issue161","ref":"issue161","sha":"61e8b9f886b547df5b6ac1e2a57490e1ba2172a9","user":{"login":"yasker","id":3344618,"avatar_url":"https://avatars.githubusercontent.com/u/3344618?v=3","gravatar_id":"","url":"https://api.github.com/users/yasker","html_url":"https://github.com/yasker","followers_url":"https://api.github.com/users/yasker/followers","following_url":"https://api.github.com/users/yasker/following{/other_user}","gists_url":"https://api.github.com/users/yasker/gists{/gist_id}","starred_url":"https://api.github.com/users/yasker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasker/subscriptions","organizations_url":"https://api.github.com/users/yasker/orgs","repos_url":"https://api.github.com/users/yasker/repos","events_url":"https://api.github.com/users/yasker/events{/privacy}","received_events_url":"https://api.github.com/users/yasker/received_events","type":"User","site_admin":false},"repo":{"id":29788638,"name":"cattle","full_name":"yasker/cattle","owner":{"login":"yasker","id":3344618,"avatar_url":"https://avatars.githubusercontent.com/u/3344618?v=3","gravatar_id":"","url":"https://api.github.com/users/yasker","html_url":"https://github.com/yasker","followers_url":"https://api.github.com/users/yasker/followers","following_url":"https://api.github.com/users/yasker/following{/other_user}","gists_url":"https://api.github.com/users/yasker/gists{/gist_id}","starred_url":"https://api.github.com/users/yasker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasker/subscriptions","organizations_url":"https://api.github.com/users/yasker/orgs","repos_url":"https://api.github.com/users/yasker/repos","events_url":"https://api.github.com/users/yasker/events{/privacy}","received_events_url":"https://api.github.com/users/yasker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yasker/cattle","description":"Infrastructure orchestration platform","fork":true,"url":"https://api.github.com/repos/yasker/cattle","forks_url":"https://api.github.com/repos/yasker/cattle/forks","keys_url":"https://api.github.com/repos/yasker/cattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yasker/cattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yasker/cattle/teams","hooks_url":"https://api.github.com/repos/yasker/cattle/hooks","issue_events_url":"https://api.github.com/repos/yasker/cattle/issues/events{/number}","events_url":"https://api.github.com/repos/yasker/cattle/events","assignees_url":"https://api.github.com/repos/yasker/cattle/assignees{/user}","branches_url":"https://api.github.com/repos/yasker/cattle/branches{/branch}","tags_url":"https://api.github.com/repos/yasker/cattle/tags","blobs_url":"https://api.github.com/repos/yasker/cattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yasker/cattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yasker/cattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/yasker/cattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yasker/cattle/statuses/{sha}","languages_url":"https://api.github.com/repos/yasker/cattle/languages","stargazers_url":"https://api.github.com/repos/yasker/cattle/stargazers","contributors_url":"https://api.github.com/repos/yasker/cattle/contributors","subscribers_url":"https://api.github.com/repos/yasker/cattle/subscribers","subscription_url":"https://api.github.com/repos/yasker/cattle/subscription","commits_url":"https://api.github.com/repos/yasker/cattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/yasker/cattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/yasker/cattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/yasker/cattle/issues/comments/{number}","contents_url":"https://api.github.com/repos/yasker/cattle/contents/{+path}","compare_url":"https://api.github.com/repos/yasker/cattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yasker/cattle/merges","archive_url":"https://api.github.com/repos/yasker/cattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yasker/cattle/downloads","issues_url":"https://api.github.com/repos/yasker/cattle/issues{/number}","pulls_url":"https://api.github.com/repos/yasker/cattle/pulls{/number}","milestones_url":"https://api.github.com/repos/yasker/cattle/milestones{/number}","notifications_url":"https://api.github.com/repos/yasker/cattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yasker/cattle/labels{/name}","releases_url":"https://api.github.com/repos/yasker/cattle/releases{/id}","created_at":"2015-01-24T19:27:47Z","updated_at":"2015-01-24T19:27:50Z","pushed_at":"2015-01-24T21:34:27Z","git_url":"git://github.com/yasker/cattle.git","ssh_url":"git@github.com:yasker/cattle.git","clone_url":"https://github.com/yasker/cattle.git","svn_url":"https://github.com/yasker/cattle","homepage":"","size":18140,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"rancherio:master","ref":"master","sha":"0da785ad5eda98c25ef1d46554382a17ab70dfdc","user":{"login":"rancherio","id":9343010,"avatar_url":"https://avatars.githubusercontent.com/u/9343010?v=3","gravatar_id":"","url":"https://api.github.com/users/rancherio","html_url":"https://github.com/rancherio","followers_url":"https://api.github.com/users/rancherio/followers","following_url":"https://api.github.com/users/rancherio/following{/other_user}","gists_url":"https://api.github.com/users/rancherio/gists{/gist_id}","starred_url":"https://api.github.com/users/rancherio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancherio/subscriptions","organizations_url":"https://api.github.com/users/rancherio/orgs","repos_url":"https://api.github.com/users/rancherio/repos","events_url":"https://api.github.com/users/rancherio/events{/privacy}","received_events_url":"https://api.github.com/users/rancherio/received_events","type":"Organization","site_admin":false},"repo":{"id":18023059,"name":"cattle","full_name":"rancherio/cattle","owner":{"login":"rancherio","id":9343010,"avatar_url":"https://avatars.githubusercontent.com/u/9343010?v=3","gravatar_id":"","url":"https://api.github.com/users/rancherio","html_url":"https://github.com/rancherio","followers_url":"https://api.github.com/users/rancherio/followers","following_url":"https://api.github.com/users/rancherio/following{/other_user}","gists_url":"https://api.github.com/users/rancherio/gists{/gist_id}","starred_url":"https://api.github.com/users/rancherio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancherio/subscriptions","organizations_url":"https://api.github.com/users/rancherio/orgs","repos_url":"https://api.github.com/users/rancherio/repos","events_url":"https://api.github.com/users/rancherio/events{/privacy}","received_events_url":"https://api.github.com/users/rancherio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rancherio/cattle","description":"Infrastructure orchestration platform","fork":false,"url":"https://api.github.com/repos/rancherio/cattle","forks_url":"https://api.github.com/repos/rancherio/cattle/forks","keys_url":"https://api.github.com/repos/rancherio/cattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rancherio/cattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rancherio/cattle/teams","hooks_url":"https://api.github.com/repos/rancherio/cattle/hooks","issue_events_url":"https://api.github.com/repos/rancherio/cattle/issues/events{/number}","events_url":"https://api.github.com/repos/rancherio/cattle/events","assignees_url":"https://api.github.com/repos/rancherio/cattle/assignees{/user}","branches_url":"https://api.github.com/repos/rancherio/cattle/branches{/branch}","tags_url":"https://api.github.com/repos/rancherio/cattle/tags","blobs_url":"https://api.github.com/repos/rancherio/cattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rancherio/cattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rancherio/cattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/rancherio/cattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rancherio/cattle/statuses/{sha}","languages_url":"https://api.github.com/repos/rancherio/cattle/languages","stargazers_url":"https://api.github.com/repos/rancherio/cattle/stargazers","contributors_url":"https://api.github.com/repos/rancherio/cattle/contributors","subscribers_url":"https://api.github.com/repos/rancherio/cattle/subscribers","subscription_url":"https://api.github.com/repos/rancherio/cattle/subscription","commits_url":"https://api.github.com/repos/rancherio/cattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/rancherio/cattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/rancherio/cattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/rancherio/cattle/issues/comments/{number}","contents_url":"https://api.github.com/repos/rancherio/cattle/contents/{+path}","compare_url":"https://api.github.com/repos/rancherio/cattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rancherio/cattle/merges","archive_url":"https://api.github.com/repos/rancherio/cattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rancherio/cattle/downloads","issues_url":"https://api.github.com/repos/rancherio/cattle/issues{/number}","pulls_url":"https://api.github.com/repos/rancherio/cattle/pulls{/number}","milestones_url":"https://api.github.com/repos/rancherio/cattle/milestones{/number}","notifications_url":"https://api.github.com/repos/rancherio/cattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rancherio/cattle/labels{/name}","releases_url":"https://api.github.com/repos/rancherio/cattle/releases{/id}","created_at":"2014-03-23T00:19:52Z","updated_at":"2015-01-24T01:51:20Z","pushed_at":"2015-01-24T01:51:20Z","git_url":"git://github.com/rancherio/cattle.git","ssh_url":"git@github.com:rancherio/cattle.git","clone_url":"https://github.com/rancherio/cattle.git","svn_url":"https://github.com/rancherio/cattle","homepage":"","size":18140,"stargazers_count":87,"watchers_count":87,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":63,"forks":16,"open_issues":63,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rancherio/cattle/pulls/162"},"html":{"href":"https://github.com/rancherio/cattle/pull/162"},"issue":{"href":"https://api.github.com/repos/rancherio/cattle/issues/162"},"comments":{"href":"https://api.github.com/repos/rancherio/cattle/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/rancherio/cattle/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/rancherio/cattle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rancherio/cattle/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/rancherio/cattle/statuses/61e8b9f886b547df5b6ac1e2a57490e1ba2172a9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":2,"changed_files":1}}