Explorer

html-ui.with-branch-status

description
Read the status name of a branch (core.branch-status-name; '' for main or a branch that is not there) from the snapshots and the status events, and pass it to then
type
Fn(project: String, branch: String, then: Fn(status: String) -> @definy.service-io) -> @definy.service-io
expression
fn(project$0, branch$1, then$2) =>
  @definy.read-snapshots(
    then: fn(commits$3) =>
      @definy.read-branch-status-records(
        then: fn(records$4) =>
          $2(
            status: @html-ui.branch-status-in(statuses: @definy.branch-statuses(commits: $3, records: $4), project: $0, branch: $1)
          )
      )
  )
visibility
public
html-ui.with-branch-status (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: 5ur-d8FVsVjK_WPJQCv39xJO5wAgfSPPXWeL5LWe-js
content hash: Ynn2gwVbSiorZXMqVDW9Cm1Z_5cHmX0q1l44cCxkNsU