LAMINAR_REASON - make it oneline
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
7d1b542963
commit
c6f150f6d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user