Skip to content

Commit 4d4cb84

Browse files
committed
CI: clarify renamed restricted path matches
Show both the previous and current path in the PR author check summary so rename-triggered matches are understandable during manual review. Made-with: Cursor
1 parent c6753f7 commit 4d4cb84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pr-author-org-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ jobs:
5555
or (.filename | startswith("cuda_python/"))
5656
or ((.previous_filename // "") | startswith("cuda_python/"))
5757
)
58-
| .filename
58+
| if (.previous_filename // "") != "" then
59+
"\(.previous_filename) -> \(.filename)"
60+
else
61+
.filename
62+
end
5963
' \
6064
"repos/$REPO/pulls/$PR_NUMBER/files"
6165
); then

0 commit comments

Comments
 (0)