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

Fix in changemarks to analyse only .md files

parent 0e41a003
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ https://forge.etsi.org/rep/cdm/pipeline-scripts/-/blob/main/common/Dockerfile.st
    changed_clause = Clause(empty,0,0,empty)
    
    for patched_file in mr.patch_set:
        if patched_file.source_file.startswith("a/TS") or patched_file.source_file.startswith("a/TR") or patched_file.source_file.startswith("a/WI"):
        if not patched_file.source_file.startswith("a/README") and patched_file.source_file.endswith(".md"):
            logging.debug(f"Looking at changes in {patched_file.source_file}")
            lines_added = 0
            lines_removed = 0
@@ -358,7 +358,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 patched_file.source_file.startswith("a/TS") or patched_file.source_file.startswith("a/TR") or patched_file.source_file.startswith("a/WI"):
        if not patched_file.source_file.startswith("a/README") and patched_file.source_file.endswith(".md"):
            logging.debug(f"Looking at changes in {patched_file.source_file}")
            lines_added = 0
            lines_removed = 0
@@ -599,7 +599,7 @@ def main(args=None):
    mr = MR(pargs.projectID, pargs.mergeID, pargs.rootURL)

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