From 6f12de7fd04e54298c0dd1b57ab2e3a7042558d4 Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 29 Mar 2024 11:08:49 +0400 Subject: [PATCH] changelog for current branch --- app/bot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/bot.php b/app/bot.php index 197e7fe..efdde26 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3670,17 +3670,17 @@ DNS-over-HTTPS with IP: public function updatebot() { - exec('git -C / branch', $m); + $b = exec('git -C / rev-parse --abbrev-ref HEAD'); $track = trim(file_get_contents('/update/branch')); $data = [ [ [ - 'text' => "{$m[0]} => $track", + 'text' => "$b => $track", 'callback_data' => "/branches", ], [ 'text' => $this->i18n('changelog'), - 'web_app' => ['url' => "https://raw.githubusercontent.com/mercurykd/vpnbot/master/version"], + 'web_app' => ['url' => "https://raw.githubusercontent.com/mercurykd/vpnbot/$b/version"], ], ], [