Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post comments to PRs as Slack Thread replies #967

Open
timexcession opened this issue Nov 28, 2019 · 57 comments
Open

Post comments to PRs as Slack Thread replies #967

timexcession opened this issue Nov 28, 2019 · 57 comments

Comments

@timexcession
Copy link

It would be neat if the PR integration would create and manage slack threads.

We have a pretty busy repo, with many PRs on going at once - it would be great if each PR could be managed through a thread on slack rather than having to search and filter an entire channel.

This relates to: #660

Thanks for considering!

@welcome
Copy link

welcome bot commented Nov 28, 2019

Thanks for opening this issue! If you would like to help implement an improvement, read more about contributing and consider submitting a pull request.

@Startouf
Copy link

On a similar topic, it would be great if PR reviews (which seem to be considered separately than PR comments) could also be sent to the thread started by the pulls notification "Pull request opened by x" if it exists.

The difficulty of this feature (both for reviews and comments) is finding the original message(s).

Right now it's possible to subscribe to PR notifications (+ comments/reviews) in any slack channel, so the code would require to try to find all the non-threaded messages in each channel the notification should be sent to, if they exist (because it's possible to subscribe to PR notifications/comments even if the original PR message was not sent to Slack).

My suggestion to handle PR reviews and comments in thread (I'm not sure about the feasibility of the search part)

  1. Change the original PR notification message to include the issue number and the repo name, so we can find it much more easily when searching messages.
GitHubAPP  3:15 PM
Pull request opened by X
 + attachment

Should become

GitHubAPP  3:15 PM
Pull request #{PR_NUMBER} opened in {repo_name} by X
 + attachment
  1. Before posting a comment/review, search in slack, in each channel the subscription is active, to find a message containing exactly Pull request #{PR_NUMBER} opened in {repo_name}. Take the last matching message in each channel (by created date), its ID will become the relevant thread_id of the channel.

I'm not sure this type of search is supported/it would require extra permissions

  1. in each channel the subscription is active, either we have found a thread_id or we have not => either send the message threaded under the message with thread_id or send the notification as a new message

@ghost
Copy link

ghost commented Mar 12, 2020

The fact that pull-request has so much slack channel space caused my team to disable it. We are jus pasting the PR link when we want a review. I think it would be good to have it automated. But it neeeds to be more compact.

A thread with details would be a good start.

Emoji updates to original post would also be good.

476 issue-989 SEAL-15000 Udate 3rd party dependencies
:changes-requested: :test-ok: :merged:

476 issue-989 SEAL-15000 Udate 3rd party dependencies
👍 💯 🍡

I guess better emojies than my example but you get the point.

@OBorce
Copy link

OBorce commented Apr 6, 2020

👍 for this

@sidvenu
Copy link

sidvenu commented Apr 21, 2020

+1 to this feature request. My organization needs this immensely.

@moonjoungyoung
Copy link

+1 to this feature. This feature is awesome.

@Sovianum
Copy link

+1

4 similar comments
@zchbndcc9
Copy link

+1

@michaeloliverx
Copy link

+1

@haigopi
Copy link

haigopi commented Aug 28, 2020

+1

@ivan-nezhura
Copy link

+1

@katedoctor
Copy link

  • 1

@nareshkumaryadav
Copy link

+1

2 similar comments
@nusija42
Copy link

+1

@adri1wald
Copy link

+1

@alokCrewFoundry
Copy link

Has this been added in the Roadmap?

@mhuisman
Copy link

+1. One PR per thread, please.

@estellise-yukihime
Copy link

👍🏼

1 similar comment
@awlevin
Copy link

awlevin commented Sep 13, 2021

+1

@jordie23
Copy link

jordie23 commented Oct 1, 2021

Is this likely to become a thing?

@fgarcia44
Copy link

+1

3 similar comments
@rubencodes
Copy link

+1

@isaak-a
Copy link

isaak-a commented Jan 26, 2022

+1

@JenniferBuehler-TomTom
Copy link

+1

@arnold-almeida
Copy link

This would be a great feature.

In our team we generally post a PR in the engineering channel once a PR is ready for review and we use tags to indicate the status of the PR.

If PR comments were updated in that thread it would greatly improve the general feedback loop.

@alexfoxy
Copy link

alexfoxy commented Mar 9, 2022

+1

3 similar comments
@ivorynoise
Copy link

+1

@pmiroslaw
Copy link

+1

@kdmgs110
Copy link

+1

@Zinkutal
Copy link

+1

@efojs
Copy link

efojs commented Jul 27, 2022

Add type:feature to this issue

@razhollander-monkeyleague

+1

2 similar comments
@vovasaz
Copy link

vovasaz commented Jul 31, 2022

+1

@isaac-abotsi-mt
Copy link

+1

@ariefaprilianto
Copy link

It's been three years

@cosydney
Copy link

cosydney commented Aug 10, 2022

Hey,

for those interested in being able to have Slack conversations that are synced with GitHub we developed Axolo. Axolo creates an ephemeral channel for each pull request that gets archived whenever your merge or close your pull requests on GitHub. In the dedicated channel you can make pull request comment, code comments and get notified of your GitHub checks.

Slack2

This integration helps in making team productive by picking up and reviewing pull requests faster while keeping all your context in a single place: Slack.

Happy to make a demo if anyone wants, just contact us in the chat on https://axolo.co

@evgi88
Copy link

evgi88 commented Sep 14, 2022

+1 for the feature

@gregsdennis
Copy link

gregsdennis commented Oct 18, 2022

I just started getting this in one of my slack workspaces. Is it possible to turn this off? I use the integration more as an RSS feed, and it's hard to see where new comments come in.

image

@sorah
Copy link

sorah commented Oct 19, 2022

It is impossible to notice updates on issues/PRs if it is posted on thread. threads add nothing usefulness.

@gregsdennis
Copy link

In several of my workspaces, this change has completely broken me. I have many GH issues and PRs that I'm following that all feed into Slack. But Slack can only have a single thread open at once. Please revert this change or add a way to disable it.

@ShuzoN
Copy link

ShuzoN commented Oct 23, 2022

Please revert this change or add a way to disable it.

I agree this idea. Please add subscribe option "also send to #channel".

@xavierlacot
Copy link

Please make this change optional.

@TheMadBug
Copy link

This feature turned out to probably be the most hated change in this repo's history. (at least for how it applies to issue comment threading).
Here's a feature request to remove it #1500 currently at 382 upvotes. Can we admit that the grand majority of users do not want this, and if made configurable it should not be the default?

I sympathise that a bunch of people requested the feature, and so you did the work and implemented it as asked. THEN a lot more people jumped out of the woodwork and told they hated it. But that's sometimes the risk of feature development.

@andrewsw
Copy link

andrewsw commented Dec 7, 2022

Just moseying by to report that between this issue and #1500, we wasted roughly 2 hours of developer time getting our subscriptions reworked into something usable for us. This could have been handled significantly better.

In the end, via undocumented (AFAICT) reviews:'channel' we were able to get it working the way we like, but it didn't need to be this difficult. Opt-in for major interface changes is the way to go, IMO.

Thanks, though, for all the work on this integration.

@TrevorSayre
Copy link

TrevorSayre commented Dec 7, 2022

We found that the threads are handy for colocation of information, but also wanted the thread posts to echo to the channel. So we left threads enabled with /github settings and also enabled comments and reviews to be posted to the channel as well as the thread via:

/github subscribe org/repo comments:"channel"
/github subscribe org/repo reviews:"channel"

Thanks for adding these, although the README only seems to mention the comments option, but the reviews option also worked. (Edit: README updated)

@lyderichti59
Copy link

lyderichti59 commented Dec 8, 2022

I find that the threads handy for colocation of information (it fits my flow/taste), but don't want the thread posts to echo to the channel (as it makes the channel noisy IMHO and I'd like to keep it thread centric).
How should I go about it ? It looks like by defaults, they echo and all slack comments are also sent to the channel.
Is there a way to keep the threading feature enabled but disable echoing to the channel ?

@andrewsw
Copy link

andrewsw commented Dec 8, 2022

@lyderichti59 check your subscriptions, /github subscribe list features, for instances of comments:"channel" and reviews:"channel". Those are what cause it to echo to the channel. Replace them with just comments and reviews to get them threaded.

If you don't have those "channel" items, then you might need to just redo your subscriptions. It seems the migration might leave things in a somewhat inconsistent state. At least, that was our experience.

@lyderichti59
Copy link

lyderichti59 commented Dec 8, 2022

Thanks for your help.
I've listed the features, the comments:"channel" and reviews:"channel" didn't appear.
So, I have unsubscribed to the repo, and re-subscribed to it.
I created a PR and closed it to trigger the behaviour.
Unfortunately, 'Pull request closed by @lyderichti59' slack message was successfully added to the thread of the PR creation, but it was also echoed in the channel although reviews and comments are not enabled.

I've tried to subscribe to comments and reviews too (explicitely, and without the "channel" part) and reopened + reclosed the previously created PR. It didn't work either : both 'reopen' and 'closed' slack messages were re-sent to the channel too.

Thanks for trying to help. Still stuck so far 🤔

@aquinq
Copy link

aquinq commented Dec 12, 2022

Here is how to disable this feature : https://github.com/integrations/slack#dont-want-threading

@Serubin
Copy link

Serubin commented Dec 12, 2022

Thanks for posting how to disable this.

While threads may provide context, they also make Slack's "Thread" panel effectively useless for tracking actual conversations. After this change appeared and before I disabled it for my organization, I had 70 new threads that mostly consisted of "PR Merged." All of the threads I was tracking are now effectively lost to the depth of the infinite scroll.

@taoruicui
Copy link

+1

@ahmed-hamza-k24
Copy link

ahmed-hamza-k24 commented Feb 14, 2023

/github subscribe

@lyderichti59
Did you find any solution for the issue - disable echo message on channel?

@Mrc0113
Copy link

Mrc0113 commented Dec 14, 2023

+1

2 similar comments
@ziwengua
Copy link

ziwengua commented May 6, 2024

+1

@adrian-85
Copy link

+1

@mvinayku
Copy link

mvinayku commented Aug 9, 2024

Screenshot 2024-08-09 at 7 08 07 PM I have created my own YAML file which posts notifications to Slack thread.

@jack-rep
Copy link

jack-rep commented Dec 3, 2024

seems it now uses threads via /github settings, but posts in channel too. Would be nice to have an option to not post in channel too. Just thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests