Skip to content

Commit 3ec0e6d

Browse files
Adding w3ids to the markdown report
1 parent 304796a commit 3ec0e6d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

postprocess.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ def main() -> int:
8282
_set_github_output(github_output_path, total_pitfalls, total_warnings, pitfalls_found, warnings_found)
8383

8484
for p in pitfalls_found:
85-
print(f"::error title={p.get('pitfall_code','')}::{p.get('pitfall_desc','')} (detected in {p.get('count',0)} repo(s))")
85+
url = p.get("pitfall", f"https://w3id.org/rsmetacheck/catalog/#{p.get('pitfall_code','')}")
86+
print(f"::error title=RsMetaCheck {p.get('pitfall_code','')}::{p.get('pitfall_desc','')} | More info: {url}")
8687
for w in warnings_found:
87-
print(f"::warning title={w.get('pitfall_code','')}::{w.get('pitfall_desc','')} (detected in {w.get('count',0)} repo(s))")
88+
url = w.get("pitfall", f"https://w3id.org/rsmetacheck/catalog/#{w.get('pitfall_code','')}")
89+
print(f"::warning title=RsMetaCheck {w.get('pitfall_code','')}::{w.get('pitfall_desc','')} | More info: {url}")
8890

8991
return 1 if pitfalls_found else 0
9092

0 commit comments

Comments
 (0)