Explorer

html-ui.branches-with-status

description
The branches (items of GetProjectBranches) whose status is status ('' for main), in the same order
type
Fn(items: List<@definy.json>, status: String) -> List<@definy.json>
expression
fn(items$0, status$1) =>
  @core.list-fold(
    T: @definy.json,
    A: List<@definy.json>,
    reducer: fn(acc$2, item$3) =>
      match @core.equal(left: @html-ui.json-string(value: $3, key: "status"), right: $1) {
        true =>
          @core.list-append(list: $2, item: $3),
        false =>
          $2
      },
    init: [],
    xs: $0
  )
visibility
public
html-ui.branches-with-status (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: i8azJKdw5pyNXhdC1ByY0906Y5iijUFF1fjr3oW3dEQ
content hash: bR_MIGRultWoPx2_Mc70FIR33JFdF6W6uEj9AxHLnNQ