{"action":"closed","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1332","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1332/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1332/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1332/events","html_url":"https://github.com/travis-ci/travis-ci/issues/1332","id":18068836,"number":1332,"title":"Conditional notification templates for different build states","user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/feature-request","name":"feature-request","color":"009800"},{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/notifications","name":"notifications","color":"444444"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-08-14T18:36:28Z","updated_at":"2015-07-23T15:39:24Z","closed_at":"2015-07-23T15:39:24Z","body":"It would be useful to have different notification templates depending upon the build state.\r\n\r\nFor example, my successful builds would include a link to uploaded artifacts - in this case, android apks - while failed builds would have a link to failure logs and other types of artifacts.\r\n\r\nI'd also like to include cake emoji in successful builds :)"}}