Changeset 8180 for sites/trunk/common/includes/slack/trac/commit.php
- Timestamp:
- 02/02/2019 12:48:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/commit.php
r8179 r8180 28 28 29 29 $username = $this->trac->get_commit_username(); 30 $url = $this->get_url();31 30 $revision = 'r' . $this->id; 32 31 $author = $this->author; … … 35 34 $attachment = []; 36 35 37 $attachment['text'] = "*$username <$url|$revision> by $author*\n$message"; 38 $attachment['fallback'] = "$revision by $author: $message"; 39 $attachment['mrkdwn_in'] = [ 'text', 'fallback' ]; 36 $attachment['title'] = "$username $revision"; 37 $attachment['title_link'] = $this->get_url(); 38 39 $attachment['author_name'] = $author; 40 $attachment['author_icon'] = sprintf( 'https://wordpress.org/grav-redirect.php?user=%s&s=32', $author ); 41 42 $attachment['text'] = $message; 43 $attachment['fallback'] = "$username $revision by $author"; 44 $attachment['mrkdwn_in'] = [ 'text' ]; 40 45 41 46 $attachment['ts'] = $this->created;
Note: See TracChangeset
for help on using the changeset viewer.