Skip to content

Commit 0b8485a

Browse files
authored
Merge pull request #1 from ferronsw/main
The Github filename includes the directory. So moving to basename.
2 parents 22ff5bb + cce20fa commit 0b8485a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ def check_files_and_folders(pull_request_url):
118118

119119
if require_lowercase_files:
120120
# Check if its a excluded file
121-
if filename not in excluded_files:
122-
if not filename.islower():
121+
if basename not in excluded_files:
122+
if not basename.islower():
123+
# Print whole path for easier debugging
123124
print(f"File breaking the policy: {filename}")
124125
valid = False
125126

0 commit comments

Comments
 (0)