{"action":"created","issue":{"url":"https://api.github.com/repos/integrations/slack/issues/519","repository_url":"https://api.github.com/repos/integrations/slack","labels_url":"https://api.github.com/repos/integrations/slack/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/integrations/slack/issues/519/comments","events_url":"https://api.github.com/repos/integrations/slack/issues/519/events","html_url":"https://github.com/integrations/slack/issues/519","id":312881246,"node_id":"MDU6SXNzdWUzMTI4ODEyNDY=","number":519,"title":"Allow subscribing to new/merged/closed PRs separately","user":{"login":"richardnias","id":7244202,"node_id":"MDQ6VXNlcjcyNDQyMDI=","avatar_url":"https://avatars2.githubusercontent.com/u/7244202?v=4","gravatar_id":"","url":"https://api.github.com/users/richardnias","html_url":"https://github.com/richardnias","followers_url":"https://api.github.com/users/richardnias/followers","following_url":"https://api.github.com/users/richardnias/following{/other_user}","gists_url":"https://api.github.com/users/richardnias/gists{/gist_id}","starred_url":"https://api.github.com/users/richardnias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardnias/subscriptions","organizations_url":"https://api.github.com/users/richardnias/orgs","repos_url":"https://api.github.com/users/richardnias/repos","events_url":"https://api.github.com/users/richardnias/events{/privacy}","received_events_url":"https://api.github.com/users/richardnias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-10T11:26:52Z","updated_at":"2018-06-17T22:16:22Z","closed_at":null,"author_association":"NONE","body":"Apologies first of all if this issue already exists. And also thanks for this integration, really enjoying it so far.\r\n\r\nI think it would be quire nice if we could configure which pull request events we can subscribe to. Something like:\r\n\r\n- `pulls:all` - Opened, closed and merged PRs\r\n- `pulls:new` - Opened PRs\r\n- `pulls:closed` - Closed PRs\r\n- `pulls:merged` - Merged PRs\r\n- `pulls` - same as `pulls:all`, default (keeping current behaviour).\r\n\r\nThe use case for this is we have a channel where we like to post PRs that are ready for review, but is mainly used as a discussion channel which we don't want to be full of unneeded messages. We have another channel where we subscribe to all activity for reference.\r\n\r\nI'm happy to give this a go, will look at opening a PR in the next few days unless someone is already working on something similar."},"comment":{"url":"https://api.github.com/repos/integrations/slack/issues/comments/397910197","html_url":"https://github.com/integrations/slack/issues/519#issuecomment-397910197","issue_url":"https://api.github.com/repos/integrations/slack/issues/519","id":397910197,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzkxMDE5Nw==","user":{"login":"filipetedim","id":11894385,"node_id":"MDQ6VXNlcjExODk0Mzg1","avatar_url":"https://avatars2.githubusercontent.com/u/11894385?v=4","gravatar_id":"","url":"https://api.github.com/users/filipetedim","html_url":"https://github.com/filipetedim","followers_url":"https://api.github.com/users/filipetedim/followers","following_url":"https://api.github.com/users/filipetedim/following{/other_user}","gists_url":"https://api.github.com/users/filipetedim/gists{/gist_id}","starred_url":"https://api.github.com/users/filipetedim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipetedim/subscriptions","organizations_url":"https://api.github.com/users/filipetedim/orgs","repos_url":"https://api.github.com/users/filipetedim/repos","events_url":"https://api.github.com/users/filipetedim/events{/privacy}","received_events_url":"https://api.github.com/users/filipetedim/received_events","type":"User","site_admin":false},"created_at":"2018-06-17T22:16:22Z","updated_at":"2018-06-17T22:16:22Z","author_association":"NONE","body":"Subscribing here too. On current project I'm working with non-tech people who get confused and think the \"pull request merged\" is just another \"Oh, new PR, click me\". Would love to have a flag to get notification only when a PR is created."}}
{"actor":{"display_login":"filipetedim"}}