Skip to content

Commit

Permalink
Fix gitlab log sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Aug 4, 2022
1 parent 4609352 commit c614e3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions megalinter/utils_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def log_section_start(section_key: str, section_title: str):
return f"::group::{section_title} (expand for details)"
elif is_gitlab_ci():
return (
f"\e[0Ksection_start:`{time.time_ns()}`:{section_key}" # noqa: W605
+ f"[collapsed=true]\r\e[0K{section_title} (expand for details)" # noqa: W605
f"\x1b[0Ksection_start:`{time.time_ns()}`:{section_key}" # noqa: W605
+ f"[collapsed=true]\r\x1b[0K{section_title} (expand for details)" # noqa: W605
)
return section_title

Expand All @@ -170,7 +170,7 @@ def log_section_end(section_key):
if is_github_actions():
return "::endgroup::"
elif is_gitlab_ci():
return f"\e[0Ksection_end:`{time.time_ns()}`:{section_key}\r\e[0K" # noqa: W605
return f"\x1b[0Ksection_end:`{time.time_ns()}`:{section_key}\r\x1b[0K" # noqa: W605
return ""


Expand Down

0 comments on commit c614e3d

Please sign in to comment.