{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/1193","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/1193/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/1193/events","html_url":"https://github.com/ampproject/amphtml/pull/1193","id":122859995,"number":1193,"title":"Change amp-analytics triggers from arrays to objects.","user":{"login":"btownsend","id":700318,"avatar_url":"https://avatars.githubusercontent.com/u/700318?v=3","gravatar_id":"","url":"https://api.github.com/users/btownsend","html_url":"https://github.com/btownsend","followers_url":"https://api.github.com/users/btownsend/followers","following_url":"https://api.github.com/users/btownsend/following{/other_user}","gists_url":"https://api.github.com/users/btownsend/gists{/gist_id}","starred_url":"https://api.github.com/users/btownsend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btownsend/subscriptions","organizations_url":"https://api.github.com/users/btownsend/orgs","repos_url":"https://api.github.com/users/btownsend/repos","events_url":"https://api.github.com/users/btownsend/events{/privacy}","received_events_url":"https://api.github.com/users/btownsend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-18T01:48:39Z","updated_at":"2015-12-18T02:48:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/1193","html_url":"https://github.com/ampproject/amphtml/pull/1193","diff_url":"https://github.com/ampproject/amphtml/pull/1193.diff","patch_url":"https://github.com/ampproject/amphtml/pull/1193.patch"},"body":"This changes how amp-analytics triggers are configured. Instead of specifying triggers as an array of objects, triggers are now specified as an object of objects. \r\n\r\nThis change was made because the way we merge configuration objects (built-in + vendor + inline + remote) is not effective for arrays.\r\n\r\nThe key for each trigger is an id string, used  only when merging triggers from multiple configs (e.g. to override a inline trigger with a remote trigger.)\r\n"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/165654473","html_url":"https://github.com/ampproject/amphtml/pull/1193#issuecomment-165654473","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/1193","id":165654473,"user":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T02:48:40Z","updated_at":"2015-12-18T02:48:40Z","body":"LGTM"}}