Making WordPress.org


Ignore:
Timestamp:
11/02/2021 07:25:50 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: Slack Firehose: Include the commit message into the Slack logging when it's not an automated commit.

See #5899.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/jobs/class-svn-import.php

    r11233 r11305  
    7171
    7272                        $changeset = (int) $element->xpath( '@revision' )[0];
    73                         $author    = (string) $element->xpath( 'author' )[0];
    74                         $msg       = (string) $element->xpath( 'msg' )[0];
     73                        $author    = trim( (string) $element->xpath( 'author' )[0] );
     74                        $msg       = trim( (string) $element->xpath( 'msg' )[0] );
    7575
    7676                        $info = compact( 'slug', 'version', 'changeset', 'author', 'msg' );
     
    116116                        $args['version'],
    117117                        $args['changeset'] ?? false,
    118                         $args['author'] ?? false
     118                        $args['author'] ?? false,
     119                        $args['msg'] ?? ''
    119120                );
    120121
Note: See TracChangeset for help on using the changeset viewer.