mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Tweak changelog template
This commit is contained in:
1
.github/workflows/notify_push.yml
vendored
1
.github/workflows/notify_push.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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('_', '\\_')
|
||||
|
||||
Reference in New Issue
Block a user