From cd98e92d2cee6158b6ba344fa21478408ff4fbc0 Mon Sep 17 00:00:00 2001 From: 0xC0FFEEEE <119874251+0xC0FFEEEE@users.noreply.github.com> Date: Sun, 30 Mar 2025 11:08:08 +0100 Subject: [PATCH] add windows path support --- contentctl/actions/release_notes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)