Commit 49f86e23 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix to not look at figures defined in a md file

parent 8a9e5042
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ https://forge.etsi.org/rep/cdm/pipeline-scripts/-/blob/main/common/Dockerfile.st

    for patched_file in mr.patch_set:
        index_source = 1
        if not patched_file.source_file.startswith("a/README") and patched_file.source_file.endswith(".md"):
        if not patched_file.source_file.startswith("a/README") and not patched_file.source_file.startswith("a/media/") and patched_file.source_file.endswith(".md"):
            logging.debug(f"Looking at changes in {patched_file.source_file}")
            lines_added = 0
            lines_removed = 0
@@ -684,7 +684,7 @@ def main(args=None):
        return 1

    for patched_file in mr.patch_set:
        if not patched_file.source_file.startswith("a/README") and patched_file.source_file.endswith(".md"):
        if not patched_file.source_file.startswith("a/README") and not patched_file.source_file.startswith("a/media/") and patched_file.source_file.endswith(".md"):
            filename = "/".join(patched_file.source_file.split("/")[1:])
            process(filename, pargs.outDirectory, mr)
        else: