Changeset 1079
- Timestamp:
- 12/31/2014 05:20:31 PM (10 years ago)
- Location:
- sites/trunk/svn.wordpress.org
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/svn.wordpress.org/bin/slack-trac-hook.php
r1078 r1079 46 46 require INC . '/trac.php'; 47 47 require INC . '/config.php'; 48 $args = Dotorg\SlackTracHook \Comments\process_message( $lines );48 $args = Dotorg\SlackTracHooks\Comments\process_message( $lines ); 49 49 $args['trac'] = $trac; 50 50 $args['ticket'] = $ticket; 51 51 $args['ticket_url'] = $ticket_url; 52 52 $args['comment_url'] = $comment_url; 53 Dotorg\SlackTracHook \Comments\send( SLACK_SENDING_HOOK, $args );53 Dotorg\SlackTracHooks\Comments\send( SLACK_SENDING_HOOK, $args ); 54 54 } 55 55 56 56 function slack_ticket_hook( $trac, $ticket ) { 57 57 $payload = array( 58 'token' => SLACK_TICKET_HOOK_API_TOKEN, 59 'trac' => $trac, 58 'trac' => $trac, 60 59 'ticket' => $ticket, 61 60 ); -
sites/trunk/svn.wordpress.org/includes/slack-trac-hooks/trac.php
r1078 r1079 77 77 $channels = (array) $this->commit_channels; 78 78 79 if ( isset( $this->firehose_channel ) ) {79 if ( ! empty( $this->firehose_channel ) ) { 80 80 $channels[] = $this->firehose_channel; 81 81 } … … 102 102 $channels = (array) $this->ticket_channels; 103 103 104 if ( isset( $this->firehose_channel ) ) {104 if ( ! empty( $this->firehose_channel ) ) { 105 105 $channels[] = $this->firehose_channel; 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.