Skip to content

Commit 456da67

Browse files
committed
slack msg: added space between timestamp and repo link in footer for commit
1 parent eb8f94f commit 456da67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/slack_message.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ let populate_commit ?(include_changes = true) repository (api_commit : api_commi
179179
let fallback = sprintf "[%s] %s - %s" (Slack.git_short_sha_hash sha) commit.message commit.author.name in
180180
{
181181
(base_attachment repository) with
182-
footer = Some (simple_footer repository ^ commit.committer.date);
182+
footer = Some (simple_footer repository ^ " " ^ commit.committer.date);
183183
(*
184184
author_name = Some author.login;
185185
author_link = Some author.html_url;

test/slack_payloads.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ will unfurl in #C047QTRD1CH
587587
"color": "#f6f8fa",
588588
"author_icon": "https://github.com/avatars/u/0",
589589
"text": "`<https://github.com/ahrefs/monorepo/commit/0d95302addd66c1816bce1b1d495ed1c93ccd478|0d95302a>` Update README.md - <https://github.com/Khady|Louis>\n_modified `README.md` (+1-1)_ on 2020-06-02",
590-
"footer": "<https://github.com/ahrefs/monorobot|ahrefs/monorobot>2020-06-02T03:14:51Z"
590+
"footer": "<https://github.com/ahrefs/monorobot|ahrefs/monorobot> 2020-06-02T03:14:51Z"
591591
}
592592
}
593593
}

0 commit comments

Comments
 (0)