Skip to content

Commit 6295120

Browse files
committed
ci: Fix PR detection
Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 3c243f1 commit 6295120

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/module-monitor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ jobs:
225225
old_commit_status = get_commit_status(old_commit_hash)
226226
new_commit_status = get_commit_status(new_commit_hash)
227227
228-
# Format commit display - simplify for better table formatting
229-
old_commit_display = old_commit_hash[:7] if old_commit_hash != "Unknown" else "Unknown"
230-
new_commit_display = new_commit_hash[:7] if new_commit_hash != "Unknown" else "Unknown"
228+
# Format commit display with PR detection
229+
old_commit_status = get_commit_status(old_commit_hash)
230+
new_commit_status = get_commit_status(new_commit_hash)
231+
old_commit_display = old_commit_status['display']
232+
new_commit_display = new_commit_status['display']
231233
232234
diff_link = generate_diff_link(old_blob.get('url', ''), new_blob.get('url', ''))
233235

0 commit comments

Comments
 (0)