slack icon indicating copy to clipboard operation
slack copied to clipboard

Post comments to PRs as Slack Thread replies

Open timexcession opened this issue 5 years ago • 56 comments
trafficstars

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: https://github.com/integrations/slack/issues/660

Thanks for considering!

timexcession avatar Nov 28 '19 15:11 timexcession

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

welcome[bot] avatar Nov 28 '19 15:11 welcome[bot]

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

Startouf avatar Feb 23 '20 14:02 Startouf

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.

ghost avatar Mar 12 '20 08:03 ghost

:+1: for this

OBorce avatar Apr 06 '20 07:04 OBorce

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

sidvenu avatar Apr 21 '20 07:04 sidvenu

+1 to this feature. This feature is awesome.

moonjoungyoung avatar Aug 04 '20 02:08 moonjoungyoung

+1

Sovianum avatar Aug 10 '20 15:08 Sovianum

+1

zchbndcc9 avatar Aug 18 '20 15:08 zchbndcc9

+1

michaeloliverx avatar Aug 28 '20 15:08 michaeloliverx

+1

haigopi avatar Aug 28 '20 22:08 haigopi

+1

ivan-nezhura avatar Nov 17 '20 14:11 ivan-nezhura

  • 1

katedoctor avatar Dec 16 '20 10:12 katedoctor

+1

nareshkumaryadav avatar Jan 12 '21 08:01 nareshkumaryadav

+1

nusija42 avatar Jan 13 '21 14:01 nusija42

+1

adri1wald avatar Jan 14 '21 15:01 adri1wald

Has this been added in the Roadmap?

alokCrewFoundry avatar Mar 24 '21 12:03 alokCrewFoundry

+1. One PR per thread, please.

mhuisman avatar Aug 20 '21 19:08 mhuisman

👍🏼

estellise-yukihime avatar Aug 26 '21 06:08 estellise-yukihime

+1

awlevin avatar Sep 13 '21 21:09 awlevin

Is this likely to become a thing?

jordie23 avatar Oct 01 '21 07:10 jordie23

+1

fgarcia44 avatar Nov 18 '21 17:11 fgarcia44

+1

rubencodes avatar Dec 03 '21 03:12 rubencodes

+1

isaak-a avatar Jan 26 '22 20:01 isaak-a

+1

JenniferBuehler-TomTom avatar Jan 31 '22 13:01 JenniferBuehler-TomTom

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.

arnold-almeida avatar Feb 02 '22 10:02 arnold-almeida

+1

alexfoxy avatar Mar 09 '22 09:03 alexfoxy

+1

ivorynoise avatar Mar 14 '22 04:03 ivorynoise

+1

pmiroslaw avatar Jun 17 '22 08:06 pmiroslaw

+1

kdmgs110 avatar Jul 11 '22 01:07 kdmgs110

+1

Zinkutal avatar Jul 15 '22 09:07 Zinkutal