1
0

message.py aktualisiert

This commit is contained in:
Denys Konovalov 2023-10-20 20:00:02 +02:00
parent 41946884d3
commit b82ed05b12

@ -11,21 +11,6 @@ class Message:
'''Building message from different parts'''
message = f'''[<a href="https://git.cantorgymnasium.de/{self.envs.github_repository}/actions/runs/{self.envs.github_run_id}">{self.envs.github_repository}</a>] {constant.ICON[self.envs.status]} <b>{self.envs.github_workflow}</b>'''
version = self.envs.get_version()
if version is not None:
message = f'''{message}
Version: <b>{version}</b>'''
if self.envs.docker_tags != "":
message = f'''{message}
Docker image tags: <b>{self.envs.docker_tags}</b>'''
if self.envs.include_commit_info == "true":
message = f'''{message}
Author: <b>{self.envs.github_actor}</b>
Commit message: <b>{self.envs.commit}</b>
<a href="{self.envs.get_commit_link()}">See changes</a>'''
return message
def send_message(self):