Making WordPress.org

Changeset 8068


Ignore:
Timestamp:
01/11/2019 02:03:57 AM (8 years ago)
Author:
dd32
Message:

Slack: Remove the /committers slash command handler as it's no longer needed.

The Slack slash integration has also been disabled.

Props desrosj.
See #4053.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/announce/lib.php

    r7666 r8068  
    8484        }
    8585
    86         if ( $data['command'] === '/committers' ) {
    87                 // This command seems to not be used actively, in preference for the slack @committers group pings.
    88                 $committers = get_committers();
    89                 if ( ! in_array( $user, $committers, true ) ) {
    90                         return;
    91                 }
    92 
    93                 // TODO: Note that pinging users by `@username` is deprecated, and we now have WordPress.org usernames in the above list.
    94                 // This should be upadted to ping users by the `<@U.....>` format.
    95 
    96                 $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) );
    97         } elseif ( $data['command'] === '/deputies' ) {
     86        if ( $data['command'] === '/deputies' ) {
    9887                $pingable_deputies = get_pingable_wordcamp_deputies();
    9988
Note: See TracChangeset for help on using the changeset viewer.