Skip to content

Commit

Permalink
Merge pull request #1 from ferronsw/main
Browse files Browse the repository at this point in the history
The Github filename includes the directory. So moving to basename.
  • Loading branch information
mnj committed Jun 18, 2024
2 parents 22ff5bb + cce20fa commit 0b8485a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def check_files_and_folders(pull_request_url):

if require_lowercase_files:
# Check if its a excluded file
if filename not in excluded_files:
if not filename.islower():
if basename not in excluded_files:
if not basename.islower():
# Print whole path for easier debugging
print(f"File breaking the policy: {filename}")
valid = False

Expand Down

0 comments on commit 0b8485a

Please sign in to comment.