Skip to content

Commit

Permalink
send_notifications.py - remove unnecessary text
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDragonXD authored Sep 11, 2024
1 parent f028993 commit 2422ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions send_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def send_document_to_ci_channel(document):

def telegram_commit_message(commits, commits_range):
overview_link = f'{github_link()}compare/{commits_range}'
overview_link_tag = f'''<a href="{overview_link}">{len(commits)} new commit{'s' if len(commits) > 1 else 'New changes'}</a>'''
overview_link_tag = f'''<a href="{overview_link}">{len(commits)} new commit{'s' if len(commits) > 1 else ''}</a>'''
message = f'''<b>🔨 {overview_link_tag} to <code>lawnicons:{github_ref}</code>:</b>\n'''

try:
Expand Down Expand Up @@ -86,7 +86,7 @@ def send_document_to_builds_channel(document):

def discord_commit_message(commits, commits_range):
overview_link = f'{github_link()}compare/{commits_range}>'
overview_link_tag = f'''[{len(commits)} new commit{'s' if len(commits) > 1 else 'New changes'}]({overview_link})'''
overview_link_tag = f'''[{len(commits)} new commit{'s' if len(commits) > 1 else ''}]({overview_link})'''
message = f'''**🔨 {overview_link_tag} to `lawnicons:{github_ref}`:**\n'''

try:
Expand All @@ -107,7 +107,7 @@ def discord_commit_message(commits, commits_range):
commits = list(repository.iter_commits(commits_range))
except git.exc.GitCommandError as error:
print(f"Error fetching commits: {error}")
exit(1)
exit()

telegram_message = telegram_commit_message(commits, commits_range)
discord_message = discord_commit_message(commits, commits_range)
Expand Down

0 comments on commit 2422ab5

Please sign in to comment.