Skip to content

Commit

Permalink
chore(IDX): add error message (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy authored Dec 5, 2024
1 parent c29cca6 commit 79c273c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ def pr_is_blocked(env_vars: dict) -> bool:
config = get_approved_files_config(repo)
approved_files = get_approved_files(config)
block_pr = not all(file in approved_files for file in changed_files)
if block_pr:
print(
f"""Blocking PR because the changed files are not in the list of approved files.
Update config at: {BOT_APPROVED_FILES_PATH} if necessary.
"""
)

return block_pr


Expand Down

0 comments on commit 79c273c

Please sign in to comment.