Commit cce12bca authored by Thomas de Grenier de Latour's avatar Thomas de Grenier de Latour
Browse files

fix: skip project if CI/CD is disabled

parent a4831c26
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -226,6 +226,12 @@ class Butler:
            )
            return False

        if not project.jobs_enabled:
            print(
                f"  - 🏠 Project {AnsiColors.BLUE}{project.path_with_namespace}{AnsiColors.RESET} has no CI/CD (disabled): {AnsiColors.HGRAY}skip{AnsiColors.RESET}"
            )
            return False

        # check if access level is high enough to process project (*_access can be missing or explicitly set to None)
        access_level = max(
            (project.permissions.get('project_access') or {}).get('access_level', 0),