Skip to content

Commit

Permalink
Avoid using notice annotation (#16)
Browse files Browse the repository at this point in the history
As github shows indicators on UI if notice messages are present in
output we will avoid these as they are more like debug messages that
do no need to be noticed.
  • Loading branch information
ssbarnea authored Oct 9, 2024
1 parent 41919e7 commit 487ae03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions codecov-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
retries += 1
sleep = DELAY * (retries + 1)
print(
f"::notice::Codecov API returned previous stats, we will retry the request in {sleep} seconds."
f"Codecov API returned previous stats, we will retry the request in {sleep} seconds."
)

msg = f"{abs(delta_coverage):.2f}% ({base_cov:.2f}% on base -> {head_cov:.2f}% on head).\n"
Expand All @@ -70,6 +70,4 @@
f"::error::Setting coverage check as failed due to coverage going down by {msg}"
)
sys.exit(2)
print(
f"::notice::Setting coverage check as passed due to coverage going up by {msg}"
)
print(f"Setting coverage check as passed due to coverage going up by {msg}")

0 comments on commit 487ae03

Please sign in to comment.