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
|
reason = commit.abbrev
|
||||||
if commit.is_branch:
|
if commit.is_branch:
|
||||||
reason += f" branch: {commit.branches}"
|
reason += f"/{commit.branches}"
|
||||||
if commit.is_tag:
|
if commit.is_tag:
|
||||||
reason += f" tags: {commit.tags}"
|
reason += f" tags: {commit.tags}"
|
||||||
if commit.is_tag or commit.is_branch:
|
reason = f"[{reason}] " + commit.log.splitlines()[0]
|
||||||
reason += "\n"
|
|
||||||
reason += commit.log
|
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['LAMINAR_REASON'] = reason
|
env['LAMINAR_REASON'] = reason
|
||||||
|
|
Loading…
Reference in New Issue
Block a user