Commit 99f23623 authored by Clement Bois's avatar Clement Bois
Browse files

Merge branch 'fix/valid-report-on-no-component' into 'main'

fix: valid report on no CI component

Closes #10

See merge request to-be-continuous/tools/tbc-check!102
parents daa4b8ce cd78f119
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1236,9 +1236,13 @@ def run():
        "=============================================================", file=sys.stderr
    )
    if not kicker.get("is_component"):
        # print(
        #     f"{AnsiColors.HGRAY}✕ this project is not a CI/CD component: skip{AnsiColors.RESET}"
        # )
        print(
            f"{AnsiColors.HGRAY}✕ this project is not a CI/CD component: skip{AnsiColors.RESET}", file=sys.stderr
        )
        # write empty output
        if args.output:
            json.dump([], fp=args.output)
            args.output.close()
        return

    # Check main template