From ff7ec0d7dbd239c50f5d608ed97f3d6d03cb6a50 Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong Date: Sun, 6 Jun 2021 01:10:40 +0700 Subject: [PATCH] Tweak changelog template --- .github/workflows/notify_push.yml | 1 + send_changelog.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify_push.yml b/.github/workflows/notify_push.yml index 44ca548349..c803157ccb 100644 --- a/.github/workflows/notify_push.yml +++ b/.github/workflows/notify_push.yml @@ -36,3 +36,4 @@ jobs: GITHUB_REPO: ${{ github.repo }} TELEGRAM_CI_BOT_TOKEN: ${{ secrets.NOTIFY_BOT_TOKEN }} TELEGRAM_CI_CHANNEL_ID: ${{ secrets.NOTIFY_CHANNEL_ID }} + BRANCH: ${{ github.ref }} diff --git a/send_changelog.py b/send_changelog.py index 4c9240d08a..8d110be4bc 100644 --- a/send_changelog.py +++ b/send_changelog.py @@ -12,7 +12,7 @@ branch = os.getenv('BRANCH') repository = git.Repo('.') commits_range = f'{github_event_before}...{github_sha}' commits = list(repository.iter_commits(commits_range)) -message = f'''🔨 [{len(commits)} new {'commit' if len(commits) == 1 else 'commits'}](https://github.com/{github_repo}/compare/{commits_range}) to `lawnchair:{branch}`:\n''' +message = f'''**🔨 [{len(commits)} new {'commit' if len(commits) == 1 else 'commits'}](https://github.com/{github_repo}/compare/{commits_range}) to `lawnchair:{branch}`:**\n''' for commit in commits: commit_message = commit.message.split('\n')[0].replace('_', '\\_')