Skip to content

Commit 76e9280

Browse files
committed
ci: Fix old commit URL
Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 405c374 commit 76e9280

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/module-monitor.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,15 @@ jobs:
184184
except:
185185
pass
186186
187-
# Default: show short commit hash
188-
return {
189-
'display': f"{commit_hash[:7]} (commit)" if commit_hash != "Unknown" else "Unknown"
190-
}
187+
# Default: show short commit hash with clickable link
188+
if commit_hash != "Unknown":
189+
return {
190+
'display': f"[{commit_hash[:7]} (commit)](https://github.com/nrfconnect/sdk-nrfxlib/commit/{commit_hash})"
191+
}
192+
else:
193+
return {
194+
'display': "Unknown"
195+
}
191196
192197
def generate_diff_link(old_url, new_url):
193198
"""Generate diff link for the source repository"""

0 commit comments

Comments
 (0)