Skip to content

Commit

Permalink
bug fix - validate only .md files (#185)
Browse files Browse the repository at this point in the history
* bug fix - validate only .md files

* readme
  • Loading branch information
mirii1994 authored Sep 4, 2023
1 parent 3129eb9 commit f672221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _metadata_validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Any file under path `docs/shipping` that is a **markdown** (`.md`) file, should

## Changelog:

- **0.0.3**:
- Bug fix - validate only markdown files.
- **0.0.2**:
- More details error logs.
- Match validation to new sub-folder structure.
Expand Down
2 changes: 1 addition & 1 deletion _metadata_validation/validate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_changed_files():
files_to_track = []
for file in files_arr:
docs_path = os.getenv(consts.ENV_DOCS_PREFIX, consts.DOCS_PATH)
if file.startswith(docs_path):
if file.startswith(docs_path) and file.endswith('.md'):
files_to_track.append(file)
return files_to_track

Expand Down

0 comments on commit f672221

Please sign in to comment.