slack icon indicating copy to clipboard operation
slack copied to clipboard

Branch-by-branch filtering

Open elliottyates opened this issue 6 years ago • 129 comments

It would be great to be able to filter activity alerts based on a list of branches, similar to what's available in the legacy app (the setting was labeled: 'Branch | Optional branch (or comma-separated branches) to filter on.').

From the configuration notes it appears we can only do 'default branch', 'all', or 'none', effectively. If I'm misreading, I'd love to hear if this is possible. Many thanks.

elliottyates avatar Mar 08 '18 17:03 elliottyates

This was critical to my company's usage. We had separate channels for checkin notices (pushes to develop) vs. releases (pushes to master) so that managerial staff could be aware of production deployment.

signe avatar Mar 13 '18 22:03 signe

Agreed, we're finding the integration unusable in our Slack #github channel without only specifying specific branches (e.g.: only master, dev, staging) and ignoring the rest. Becomes amazingly spammy otherwise. This was supported in the legacy app so it would be lovely to have it included here.

nickbouton avatar Mar 14 '18 16:03 nickbouton

We are missing this in our organization as well. Need the ability to subscribe to one or multiple branches in a repository.

kling90 avatar Mar 21 '18 14:03 kling90

Indeed, especially if you are following the git-flow model, this is highly needed.

memphis88 avatar Mar 22 '18 11:03 memphis88

yes, it's important to have separate notifications for separate branches. The only solution for now is using custom script to accept hooks from github and send messages to slack.

pmartini avatar Mar 23 '18 13:03 pmartini

+1 for importance for us too. We have to uninstall this because we need notifications for multiple stable branches, but certainly not ALL branches in the repo.

teeohhem avatar Mar 23 '18 20:03 teeohhem

Great suggestion - we can't migrate from the legacy app until this is implemented.

quattromatt avatar Apr 02 '18 20:04 quattromatt

A big +1 here as well. The existing syntax, as found at https://github.com/integrations/slack#configuration, could already accommodate filtering for at least one specific branch. Right now it's possible to do:

/github subscribe alice/some-repo commits:all

What follows the colon could be the name of any specific branch, e.g.

/github subscribe alice/some-repo commits:some-topic-branch

In any case, this is one more feature missing from the new app that was present in the old one. I'm loving the convenience of having a /github subscribe slash command (have wanted this for years!) but I'm afraid it's coming at a pretty steep cost. Thanks for considering.

cbeams avatar Apr 09 '18 18:04 cbeams

also would be nice if it supported wildcards, e.g.

/github subscribe alice/some-repo commits:release*

We create release branches for each release. These notifications would be nice for our product team that is very concerned with activity only related to release branch.

jaywclark avatar Apr 12 '18 20:04 jaywclark

Along the same lines, being able to limit the type of activities that alert would be nice (in my case I only want to know when a PR is opened, nothing else).

WolverineFan avatar May 30 '18 17:05 WolverineFan

+1

landsman avatar Jun 08 '18 18:06 landsman

+1

ZeD3v avatar Jun 15 '18 07:06 ZeD3v

Any timeline on this? Pretty essential in order to EOL the legacy app.

slavingia avatar Jun 19 '18 12:06 slavingia

Yes. +1

AndyUrquijo avatar Jun 22 '18 20:06 AndyUrquijo

Please! +1

AdamDenoon avatar Jun 23 '18 20:06 AdamDenoon

+1

jasonmoore2k avatar Jul 13 '18 05:07 jasonmoore2k

along the line, it would be nice to be able to filter deployments by branch, since we use feature branches for QA's

Saayaman avatar Jul 16 '18 19:07 Saayaman

+1

jonysk avatar Jul 22 '18 16:07 jonysk

::::Need to subscribe github-url for a specific feature branch::::

I am using Slack. I have added GutHub App. I have already subscribed my github project. I am able to get all the commits info for master branch.

Requirement: I want notifications regarding commits,etc. only for a specific feature branch.

Please help here.

mayank-mahajan-guavus avatar Jul 27 '18 05:07 mayank-mahajan-guavus

+1

jmymy avatar Jul 31 '18 19:07 jmymy

+1

diescake avatar Aug 03 '18 02:08 diescake

+1

davingreen avatar Aug 03 '18 16:08 davingreen

+1

mscanzillo avatar Aug 06 '18 16:08 mscanzillo

+1. just posting to bring this up again.

deeTEEcee avatar Oct 02 '18 20:10 deeTEEcee

I tried the above solution with commits: and it seems that functionality no longer works, no is it in the documentation.

bvergara87 avatar Oct 25 '18 15:10 bvergara87

@bvergara87 This /github subscribe alice/some-repo commits:some-topic-branch was just a suggestion.

keckelt avatar Oct 26 '18 15:10 keckelt

The only two currently available commit subscribe options are:

Subscribe to default branch commits: /github subscribe alice/some-repo commits

Subscribe to all branches commits: /github subscribe alice/some-repo commits:all

Would love to:

Subscribe to named branch commits: /github subscribe alice/some-repo commits:branch-name

campaignupgrade avatar Nov 01 '18 07:11 campaignupgrade

I feel like this is pretty critical functionality as well! Otherwise this integration has a pretty narrow use case. +1

bobjackman avatar Nov 02 '18 17:11 bobjackman

I am commenting as I would seriously appreciate/need this.

hjelmeir avatar Nov 24 '18 03:11 hjelmeir

As a workaround I compare the hashes returned by git ls-remote and post a Message to Slack via the API if the hash changes.

keckelt avatar Nov 27 '18 08:11 keckelt