Skip to content

Run.namespaces

The names of the worktrees from the top-level Run down to this one, each a Namespace. The top-level Run has none.

child = run.worktree("issue-42")
tests = child.worktree("tests")

Here tests.namespaces holds issue-42 and tests, outermost first. Use it to name a worktree's boards and commits after where it sits.

where = "/".join(name.value for name in tests.namespaces)
await tests.step(tester, commit=f"Add tests in {where}")

Reference

agl.sdk.Run.namespaces property

The worktree names from the top-level Run down to this one.

Returns:

  • tuple[Namespace, ...] –

    The namespaces this Run was opened under, outermost first. Empty for the top-level Run.

agl.sdk.Namespace dataclass

A worktree's name, as given to run.worktree.

value instance-attribute

The name as text.