Changeset 9218
- Timestamp:
- 10/21/2019 07:12:19 AM (5 years ago)
- Location:
- sites/trunk/common/includes/slack/trac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/commit-handler.php
r8183 r9218 22 22 public function run() { 23 23 $this->generate_payload(); 24 foreach ( $this->trac->get_commit_channels( $this->svnlook( 'changed' ) ) as $channel ) {24 foreach ( $this->trac->get_commit_channels( $this->svnlook( 'changed' ), $this->svnlook( 'log' ) ) as $channel ) { 25 25 $this->send->send( $channel ); 26 26 } -
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.