Skip to content

Commit

Permalink
useful url
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Feb 13, 2023
1 parent 395a6c1 commit e30c126
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/detect_sha_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ def encode_msg_text_for_github(msg):
continue

if a_info is not None and b_info is not None:
print(f"::info file={diff.b_blob.path},line={b_info.commit_line_no},title=Note SHA change::{a_info} -> {b_info}")
if a_info.module == b_info.module:
mod_path = a_info.module.replace('.', '/')
msg = "See https://leanprover-community.github.io/mathlib-port-status/file/{mod_path}?range={a_info.commit}..{b_info.commit}"
print(f"::notice file={diff.b_blob.path},line={b_info.commit_line_no},title=Synchronization::{msg}")
else:
print(f"::warning file={diff.b_blob.path},line={b_info.commit_line_no},title=Filename changed!::{a_info} -> {b_info}")

if any_errors:
raise SystemExit()

0 comments on commit e30c126

Please sign in to comment.