slack icon indicating copy to clipboard operation
slack copied to clipboard

Allow subscribing to new/merged/closed PRs separately

Open richardnias opened this issue 6 years ago • 124 comments

Apologies first of all if this issue already exists. And also thanks for this integration, really enjoying it so far.

I think it would be quire nice if we could configure which pull request events we can subscribe to. Something like:

  • pulls:all - Opened, closed and merged PRs
  • pulls:new - Opened PRs
  • pulls:closed - Closed PRs
  • pulls:merged - Merged PRs
  • pulls - same as pulls:all, default (keeping current behaviour).

The 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.

I'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.

richardnias avatar Apr 10 '18 11:04 richardnias

How does this not have the priority:must tag? :)

seashellski avatar Apr 16 '18 14:04 seashellski

I came here to ask for the same feature!

fmarts avatar May 16 '18 09:05 fmarts

+1

gemedet avatar May 17 '18 23:05 gemedet

+1 to this. We want to use this tool to have a changelog of all merges into our major clusters that doesn't have all the noise from open/closed PRs. This would be a major improvement to the tool!

cviddy avatar May 23 '18 14:05 cviddy

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.

filipetedim avatar Jun 17 '18 22:06 filipetedim

+1 to this issue

Would be very nice in order to communicate what has been merged to stakeholders (like @filipetedim).

mrpandat avatar Apr 08 '19 09:04 mrpandat

My team would like this also

compwron avatar Jul 24 '19 22:07 compwron

@richardnias can you provide more detail about the event-type you need for your use-cases?

Are opened, merged, closed and the default all, everything you need?

Everybody else is invited to share their requirements too.

dennissivia avatar Aug 21 '19 15:08 dennissivia

@scepticulous I think opened, 'merged', closed and default all would be an ideal scenario for us. This would allow us to just have a channel with all closed PRs to surface while individuals would still be able create custom channels for all open PRs in repos they are interested in.

cviddy avatar Sep 03 '19 18:09 cviddy

I think those 4 cover most use-cases. I don't know if updated could be an event also.

jepperaskdk avatar Sep 08 '19 17:09 jepperaskdk

@scepticulous a special case that hasn't been mentioned yet is draft PRs. we currently get notifications both when a draft is opened and when it's marked as ready for review, but we'd prefer to filter those as needed

gemedet avatar Sep 09 '19 16:09 gemedet

+1 on this. Our team just needs to know about new pull requests. Without it, we are getting double the notifications we need and are considering dropping this integration.

chrissaid avatar Feb 06 '20 19:02 chrissaid

A related suggestion - it would be great if subsequent notifications of an opened PR could be sent to a thread on the original message.

- New PR opened: ...
  <in the thread>
  - Bob added a comment
  - Bob pushed a commit
  - Nancy added a label
  - etc

ZacSweers avatar Feb 08 '20 22:02 ZacSweers

I just want the status to be updated in the main post. Open, Approved, Rejected, merged, closed One post per PR. Though being able to limit other than new would be a ok workaround.

ghost avatar Feb 11 '20 11:02 ghost

This may be out of scope, but while we're on the subject of this, it would be nice to have approvals show up within the initial PR notification, like of like CI checks are now.

zyqxd avatar Mar 27 '20 17:03 zyqxd

What about synchronize event (new commit to existing PR)?

sfdye avatar Jun 12 '20 04:06 sfdye

There should also be an option to filter out draft PRs as I don't want my team to be notified about a PR until I'm ready for them to review it.

lztetreault-dev avatar Jul 22 '20 16:07 lztetreault-dev

If anyone is looking for an interim solution, I've found that using Zapier provides a much less frustrating experience than this GitHub integration.

Trigger: [Github] New Pull Request Action: Post to a Slack channel

It does still include draft PRs, but it doesn't post for merges or closes, which is much better for my team.

bjohnson-va avatar Sep 10 '20 15:09 bjohnson-va

+1 for this

justinkunz avatar Sep 16 '20 16:09 justinkunz

+1, Would love this feature

kishanchaitanya avatar Oct 16 '20 00:10 kishanchaitanya

+1

simon-well avatar Nov 11 '20 19:11 simon-well

Would be great to have a merge-only option so that we can pull merge notifications into our community Slack to show velocity for the project without spamming too much.

zwass avatar Nov 18 '20 01:11 zwass

+1 please!

MatayoshiMariano avatar Dec 24 '20 15:12 MatayoshiMariano

+1

paulpet avatar Feb 03 '21 07:02 paulpet

Please +1

PaulAhn-GEA avatar Mar 05 '21 02:03 PaulAhn-GEA

➕ !!!

anthonykaras avatar Mar 11 '21 19:03 anthonykaras

+1 please!

Letle avatar Mar 26 '21 20:03 Letle

this is a blocker for this entire integration for me, and has been for a year

escalonn avatar Mar 31 '21 20:03 escalonn

necessary feature!

nnn3d avatar Apr 01 '21 08:04 nnn3d

+1

mlsaito avatar Apr 08 '21 08:04 mlsaito