Skip to content

Commit

Permalink
The Github filename includes the directory. So moving to basename.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferronsw committed Jun 14, 2024
1 parent 22ff5bb commit cce20fa
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 cce20fa

Please sign in to comment.