summaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/src/github.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/src/github.cpp b/bot/src/github.cpp
index 6b2e201..d951e11 100644
--- a/bot/src/github.cpp
+++ b/bot/src/github.cpp
@@ -201,18 +201,18 @@ namespace bot {
message = "๐Ÿง‘โ€๐Ÿ’ป " + message;
// Replacing SHA placeholder
- std::size_t pos = message.find("%0");
+ std::size_t pos = message.find("{sha}");
if (pos != std::string::npos)
- message.replace(pos, 2, commit.sha.substr(0, 7));
+ message.replace(pos, 5, commit.sha.substr(0, 7));
// Replacing committer placeholder
- pos = message.find("%1");
+ pos = message.find("{author}");
if (pos != std::string::npos)
- message.replace(pos, 2, commit.commiter_name);
+ message.replace(pos, 8, commit.commiter_name);
// Replacing message placeholder
- pos = message.find("%2");
- if (pos != std::string::npos) message.replace(pos, 2, commit.message);
+ pos = message.find("{msg}");
+ if (pos != std::string::npos) message.replace(pos, 5, commit.message);
if (!names.empty()) {
message += " ยท ";