diff --git a/contentctl/actions/release_notes.py b/contentctl/actions/release_notes.py index d9272129..ac36e358 100644 --- a/contentctl/actions/release_notes.py +++ b/contentctl/actions/release_notes.py @@ -3,6 +3,7 @@ import re import yaml import pathlib +from os import path from typing import List, Union @@ -229,7 +230,7 @@ def release_notes(self, config: release_notes) -> None: file_path = pathlib.Path(diff.a_path) # Check if the file is in the specified directories - if any(str(file_path).startswith(directory) for directory in directories): + if any(str(file_path).startswith(path.normpath(directory)) for directory in directories): # Check if a file is Modified if diff.change_type == "M": modified_files.append(file_path)