From ae030f0ba30b1cd4d10780d9fc2d7cad925b6976 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 17 Apr 2025 21:06:54 +0500 Subject: upd: placeholder names --- bot/src/github.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bot/src/github.cpp') 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 += " ยท "; -- cgit v1.2.3