{"action":"created","issue":{"url":"https://api.github.com/repos/dlespiau/patchwork/issues/147","repository_url":"https://api.github.com/repos/dlespiau/patchwork","labels_url":"https://api.github.com/repos/dlespiau/patchwork/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/dlespiau/patchwork/issues/147/comments","events_url":"https://api.github.com/repos/dlespiau/patchwork/issues/147/events","html_url":"https://github.com/dlespiau/patchwork/issues/147","id":132913014,"number":147,"title":"Per-project/per-severity options for sending mail","user":{"login":"ruscur","id":5637090,"avatar_url":"https://avatars.githubusercontent.com/u/5637090?v=3","gravatar_id":"","url":"https://api.github.com/users/ruscur","html_url":"https://github.com/ruscur","followers_url":"https://api.github.com/users/ruscur/followers","following_url":"https://api.github.com/users/ruscur/following{/other_user}","gists_url":"https://api.github.com/users/ruscur/gists{/gist_id}","starred_url":"https://api.github.com/users/ruscur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruscur/subscriptions","organizations_url":"https://api.github.com/users/ruscur/orgs","repos_url":"https://api.github.com/users/ruscur/repos","events_url":"https://api.github.com/users/ruscur/events{/privacy}","received_events_url":"https://api.github.com/users/ruscur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T08:06:16Z","updated_at":"2016-02-11T08:19:30Z","closed_at":null,"body":"By default, Patchwork will send an email to the mailing list if a test result is published with \"warning\" or \"failure\" status (I think).  It'd be nice to be able to configure this per-project, so a maintainer can opt-out of having Patchwork post to the mailing list, or only if it's more serious than a warning.  That way, the benefit of having test results posted on the series page in Patchwork is still there without having to disturb the list."},"comment":{"url":"https://api.github.com/repos/dlespiau/patchwork/issues/comments/182759498","html_url":"https://github.com/dlespiau/patchwork/issues/147#issuecomment-182759498","issue_url":"https://api.github.com/repos/dlespiau/patchwork/issues/147","id":182759498,"user":{"login":"dlespiau","id":7986,"avatar_url":"https://avatars.githubusercontent.com/u/7986?v=3","gravatar_id":"","url":"https://api.github.com/users/dlespiau","html_url":"https://github.com/dlespiau","followers_url":"https://api.github.com/users/dlespiau/followers","following_url":"https://api.github.com/users/dlespiau/following{/other_user}","gists_url":"https://api.github.com/users/dlespiau/gists{/gist_id}","starred_url":"https://api.github.com/users/dlespiau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlespiau/subscriptions","organizations_url":"https://api.github.com/users/dlespiau/orgs","repos_url":"https://api.github.com/users/dlespiau/repos","events_url":"https://api.github.com/users/dlespiau/events{/privacy}","received_events_url":"https://api.github.com/users/dlespiau/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T08:19:30Z","updated_at":"2016-02-11T08:19:30Z","body":"Hi,\r\n\r\nFWIW, I've promised other people interested in tests to have proper documentation for testing integration in patchwork written this week. I can at least show you a picture of the intended flow as a teaser:\r\n\r\n  http://entropy.lespiau.name/patchwork/testing-ci-flow.png\r\n\r\nBy default, patchwork will not send any email, that's to allow test scripts authors to debug/develop without the risk of sending confusing emails to the ml.\r\n\r\nThe test result emailing is actually fine-grained, configurable per test identified by a unique tuple (project, test-name). See the unique_together = [('project', 'name')] Meta field of the Test model (patchwork/models.py). That configuration is already quite flexible:\r\n\r\n  - send to ml, patch submitter, a list of email addresses or no email at all\r\n  - if sending an email: always send it or send the email on warning/failure as you said\r\n\r\nSo the only bit missing for you is to be able to configure the mailing out only error, fair enough, should be straightforward."}}