Explorer

core.branch-summary-status

description
The status of a branch summarized by core.project-branches (core.branch-status-of). none for main, which has no status
type
Fn(
  branch: @core.branch-summary,
  records: List<@core.branch-status-record>,
  merges: List<@core.branch-merge>
) -> Union{#none, #some(@core.branch-status)}
expression
fn(branch$0, records$1, merges$2) =>
  match @core.equal(left: $0.name, right: "main") {
    true =>
      #none,
    false =>
      #some(@core.branch-status-of(
        project_name: $0.project_name,
        branch: $0.name,
        creator_account_id: $0.creator_account_id,
        latest_event_hash: $0.latest_event_hash,
        records: $1,
        merges: $2
      ))
  }
visibility
public
core.branch-summary-status (project definy, branch quote-encoded-parts, snapshot LbKb9vIRs5vdtsu6TiOqZ_NMUZJ6k1s6WlbZOc6x3-I)
id: vhgwWwY_RlZzvlxkGq-RaEM4VylKRYU_Yx686S6ueS4
content hash: 2c1xuCgBDBjWQsSUih_dXVk3JQ-e9Hv8xIOnUzmKAgQ