Skip to content

Commit

Permalink
Minor reporting fixes (#2480)
Browse files Browse the repository at this point in the history
Minor reporting fixes

Reviewed-by: Matej Focko
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jul 29, 2024
2 parents e7e19ce + a2548d5 commit 889e754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packit_service/worker/reporting/reporters/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _create_table(
table_content = []
if url:
type_of_url = ""
if "dashboard.packit.dev" in url or "dashboard.stg.packit.dev":
if "dashboard.packit.dev" in url or "dashboard.stg.packit.dev" in url:
type_of_url = "Dashboard"
elif DOCS_URL in url:
type_of_url = "Documentation"
Expand Down Expand Up @@ -107,6 +107,7 @@ def set_status(
summary = (
self._create_table(url, links_to_external_services)
+ markdown_content
+ "\n"
+ f"---\n*{News.get_sentence()}*"
)

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def test_set_status_github_check(
status=check_status,
conclusion=check_conclusion,
output=create_github_check_run_output(
title, summary + "---\n*Interesting news.*"
title, summary + "\n---\n*Interesting news.*"
),
).once()

Expand Down Expand Up @@ -460,7 +460,7 @@ def test_status_instead_check(
status=check_status,
conclusion=check_conclusion,
output=create_github_check_run_output(
title, summary + "---\n*Interesting news.*"
title, summary + "\n---\n*Interesting news.*"
),
).and_raise(exception_type).once()

Expand Down

0 comments on commit 889e754

Please sign in to comment.