Making WordPress.org

Changeset 8183


Ignore:
Timestamp:
02/02/2019 02:09:40 PM (5 years ago)
Author:
ocean90
Message:

Slack: Include only the commit message in text field for commit notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/commit-handler.php

    r8181 r8183  
    3737    protected function generate_payload() {
    3838        $author   = $this->svnlook( 'author' );
    39         $log      = Commit::format_commit_for_slack( $this->trac, $this->svnlook( 'log' ) );
     39        $message  = Commit::format_commit_for_slack( $this->trac, $this->svnlook( 'log' ) );
    4040        $date     = $this->svnlook( 'date' );
    4141        $url      = $this->trac->get_commit_template( $this->rev );
     
    4444        $icon     = $this->trac->get_icon();
    4545        $color    = $this->trac->get_color();
    46 
    4746        $title    = "$username $revision";
    48         $text     = "*$username <$url|$revision> by $author*\n$log";
    4947        $fallback = "$username $revision by $author";
    5048
     
    5755            'author_icon' => sprintf( 'https://wordpress.org/grav-redirect.php?user=%s&s=32', $author ),
    5856            'color'       => $color,
    59             'text'        => $text,
     57            'text'        => $message,
    6058            'fallback'    => $fallback,
    6159            'mrkdwn_in'   => array( 'text' ),
Note: See TracChangeset for help on using the changeset viewer.