From e450ecfc61b93c6ae09b9d9f05d800090bcefc88 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 23 Sep 2023 21:30:04 +0200 Subject: [PATCH] environments.py aktualisiert --- environments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/environments.py b/environments.py index 127af7f..e85e4db 100644 --- a/environments.py +++ b/environments.py @@ -13,6 +13,7 @@ class Environment: github_repository, github_sha, github_actor, + github_run_id tag ): self.chat_id = chat_id @@ -26,6 +27,7 @@ class Environment: self.github_repository = github_repository self.github_sha = github_sha self.github_actor = github_actor + self.github_run_id = github_run_id self.tag = tag def get_link(self): @@ -33,7 +35,7 @@ class Environment: return f'https://api.telegram.org/bot{self.token}/sendMessage' def get_commit_link(self): '''Get link to commit''' - return f'https://github.com/{self.github_repository}/commit/{self.github_sha}' + return f'https://git.cantorgymnasium.de/{self.github_repository}/commit/{self.github_sha}' def __fix_commit_message(self, message): '''Replacing unsupported characters''' replace_dict = {'<':'(', '>':')', '\n':'\n '}