Tweak changelog template

This commit is contained in:
Suphon Thanakornpakapong
2021-06-06 01:10:40 +07:00
parent 5d2c72afcd
commit ff7ec0d7db
2 changed files with 2 additions and 1 deletions

View File

@@ -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 }}

View File

@@ -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('_', '\\_')