Commit b920bb0f authored by Laurent Peuch's avatar Laurent Peuch
Browse files

fix: since I've been added in logilab group we need a more precise match for public cubes

parent f8c726c79a78
Pipeline #48977 canceled with stages
......@@ -5,7 +5,7 @@ import gitlab
gl = gitlab.Gitlab("https://forge.extranet.logilab.fr", oauth_token=os.environ.get("GITLAB_TOKEN"))
all_core_projects = [x for x in gl.projects.list(all=True) if "cw-core" in x.tag_list]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["name"] == "cubes"]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["full_path"] == "cubicweb/cubes"]
for project in all_core_projects + all_cubes:
existing_badges = {x.name for x in project.badges.list(all=True)}
......
......@@ -43,7 +43,7 @@ context: Dict[str, list] = {
if not args.cache or not os.path.exists(args.cache):
all_core_projects = [x for x in gl.projects.list(all=True) if "cw-core" in x.tag_list]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["name"] == "cubes"]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["full_path"] == "cubicweb/cubes"]
for category, projects in [("core-projects", all_core_projects), ("cubes", all_cubes)]:
......
......@@ -42,7 +42,7 @@ for project in all_core_projects:
context["projects"] = sorted(context["projects"], key=lambda x: x["project"]["name"].lower())
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["name"] == "cubes"]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["full_path"] == "cubicweb/cubes"]
logger.info("parsing all cubes...")
for cube in all_cubes:
......
......@@ -13,7 +13,7 @@ gl = gitlab.Gitlab("https://forge.extranet.logilab.fr", oauth_token=os.environ.g
context = {"cubes": []}
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["name"] == "cubes"]
all_cubes = [x for x in gl.projects.list(all=True) if x.namespace["full_path"] == "cubicweb/cubes"]
PYTEST_CAPTURE_DEPRECATEDWARNINGS_PACKAGE_URI = "git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment