Commit f41c7bed authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'skip-projects-with-no-cicd' into 'main'

fix: skip project if CI/CD is disabled

See merge request to-be-continuous/tools/gitlab-butler!48
parents af006046 cce12bca
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),