LAMINAR_REASON - make it oneline

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-08-10 08:59:37 +02:00
parent 7d1b542963
commit c6f150f6d5
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

@ -44,12 +44,10 @@ def detector_executor(commit: DetectedCommit):
reason = commit.abbrev
if commit.is_branch:
reason += f" branch: {commit.branches}"
reason += f"/{commit.branches}"
if commit.is_tag:
reason += f" tags: {commit.tags}"
if commit.is_tag or commit.is_branch:
reason += "\n"
reason += commit.log
reason = f"[{reason}] " + commit.log.splitlines()[0]
env = os.environ.copy()
env['LAMINAR_REASON'] = reason