- Timestamp:
- 02/02/2019 02:09:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/commit-handler.php
r8181 r8183 37 37 protected function generate_payload() { 38 38 $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' ) ); 40 40 $date = $this->svnlook( 'date' ); 41 41 $url = $this->trac->get_commit_template( $this->rev ); … … 44 44 $icon = $this->trac->get_icon(); 45 45 $color = $this->trac->get_color(); 46 47 46 $title = "$username $revision"; 48 $text = "*$username <$url|$revision> by $author*\n$log";49 47 $fallback = "$username $revision by $author"; 50 48 … … 57 55 'author_icon' => sprintf( 'https://wordpress.org/grav-redirect.php?user=%s&s=32', $author ), 58 56 'color' => $color, 59 'text' => $ text,57 'text' => $message, 60 58 'fallback' => $fallback, 61 59 'mrkdwn_in' => array( 'text' ),
Note: See TracChangeset
for help on using the changeset viewer.