Changeset 9218 for sites/trunk/common/includes/slack/trac/trac.php
- Timestamp:
- 10/21/2019 07:12:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/trac.php
r7347 r9218 80 80 $this->ticket_component_filters[ $component ] = array( $channel => true ); 81 81 } 82 83 84 82 if ( $this->bypass_primary_channel_for_ticket_filter_matches && empty( $this->ticket_component_filters[ $component ][ $this->primary_channel ] ) ) { 83 $this->ticket_component_filters[ $component ][ $this->primary_channel ] = false; 84 } 85 85 } 86 86 } … … 211 211 } 212 212 213 function get_commit_channels( $changed_files = null ) {213 function get_commit_channels( $changed_files = null, $log_text = null ) { 214 214 $channels = array(); 215 215 … … 233 233 } 234 234 235 foreach ( $this->ticket_component_filters as $component => $channels_to_add ) { 236 if ( 0 === stripos( $log_text, $component ) ) { 237 $channels = array_merge( $channels, (array) $channels_to_add ); 238 } 239 } 240 235 241 if ( $this->firehose_channel ) { 236 242 $channels[ $this->firehose_channel ] = true;
Note: See TracChangeset
for help on using the changeset viewer.