Ops.remote_step: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend as Ops Lines 24-33 of near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend&start_line=24&end_line=33 import Base import near-v-framework@0.4.0.0/domain/architecture/system/release/type.bend as Rl import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P def remote_step(+repo: Rl.Repository, rm: P.Remote) -> P.Step: match repo rm: case Rl.Repository{+name, +public} P.Remote{+origin, +vis, clean, pushed}: Bool.pick(P.Step, String.contains(origin, name), Bool.pick(P.Step, String.eq(vis, visibility(public)), Bool.pick(P.Step, clean, Bool.pick(P.Step, pushed, P.Current{"github " ++ name}, P.Push{name}), P.Blocked{"github " ++ name, "uncommitted changes"}), P.Blocked{"github " ++ name, "GitHub says " ++ Bool.pick(String, String.is_empty(vis), "nothing (unreachable)", vis) ++ ", declared " ++ visibility(public)}), P.Blocked{"github " ++ name, "origin is " ++ origin}) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend&name=visibility https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend&name=Remote https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend&name=Step https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/release/type.bend&name=Repository