Making WordPress.org


Ignore:
Timestamp:
10/24/2019 04:06:42 AM (4 years ago)
Author:
dd32
Message:

Slack: Thread trac-bot ticket responses.

When a ticket is referenced within a thread, trac-bot will no longer send it to the global channel (often wtihout any context).

There's an option to reply in-thread, but also to broadcast to the wider channel, but thought that best to avoid for now.
Unfortunately the slack outgoing-webhook implementation doesn't announce whether the threaded message we're being triggered by was broadcast or not.

Fixes #2555.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/bot.php

    r4755 r9228  
    3131    function get_channel() {
    3232        return '#' . $this->post_data['channel_name'];
     33    }
     34
     35    function get_thread() {
     36        return $this->post_data['thread_ts'] ?? false;
    3337    }
    3438
Note: See TracChangeset for help on using the changeset viewer.