view

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package view is how the command line shows what the engine returns: the --json shapes, the writers of results, plans, and the queue, the attention rows and their Next lines, and the words they share. It decides nothing and imports no verb; the verbs, status, and check each render through it (part 4, item 2 of v0.5.0's roadmap).

Index

Constants

View Source
const (
	AttentionFailed   attentionKind = "failed"
	AttentionNeedsYou attentionKind = "needs_you"
	AttentionReady    attentionKind = "ready"
)
View Source
const (
	// Broken is what failed or can't be done: "✗ fails at the base".
	Broken = "✗"
	// Look is what wants your look: "! held: upstream's COPYING changed".
	Look = "!"
	// Done is what's done, or ready: "✓ passed".
	Done = "✓"
	// Working is what's under way: "⋯ checking".
	Working = "⋯"
	// NotRun is a step that didn't run, in a table of steps: a batch's
	// "jq  ✓  ✓  –".
	NotRun = "–"
)

The marks, each with one meaning in every command's text (v0.5.0 part 5, item 2, from the command UX review's §10): how much a reader should care, never whether something holds automation, which a line says in a word, "held". "·" is a separator only, and a line for your information carries no mark.

View Source
const Unmarked = " "

Unmarked is the space a mark takes, for a line in a marked list that carries none.

Variables

This section is empty.

Functions

func AttentionView

func AttentionView(rows []Attention) []attentionJSON

func BatchExit

func BatchExit(failed []string, total int, done string) error

batchExit is a batch's exit (the command-line UX review's §10): 1 where none of total went through, 3 where some stopped and need a look.

func BranchDetail added in v0.7.0

func BranchDetail(status engine.BranchStatus, report engine.StatusReport) *branchDetailJSON

BranchDetail is what status's text details of a branch shown alone, from the report the text reads too.

func ChangeWords added in v0.6.0

func ChangeWords(change buildenv.Change) string

ChangeWords say something of the person's a check changed, as status says it: a check building in a prefix now, whose put-back undoes an upgrade made meanwhile, or one a check left changed, with how to put it back.

func ChangesView added in v0.6.0

func ChangesView(changes []buildenv.Change) []changeJSON

ChangesView is engine.Changes as fields.

func CheckState

func CheckState(s engine.BranchStatus) string

CheckState is the checks column: what is running, else what the latest check says about the files as they are now.

func CheckWords

func CheckWords(plan engine.SubmitPlan) string

func CleanView

func CleanView(plans []engine.CleanBranch) []cleanBranchJSON

func ComparisonLines

func ComparisonLines(comparisons []engine.PortComparison) []string

ComparisonLines are what each port's assessment found, a line each, marked as update marks them, under an Upstream label. Where there are several ports, each line names the ports that found it, said once for all of them: a python port's subports each repeated a license finding and a requirement's, whose other lines differed by provider (the Vx port's field testing, 2026-10-04, py-coremltools and py-mlx-vlm).

func DescribeWork

func DescribeWork(plan engine.TidyPlan) string

func DetailLines added in v0.7.0

func DetailLines(from []LinkLine) []linkLineJSON

DetailLines are a report's lines as JSON: each its mark and words.

func DiffView

func DiffView(diff engine.BranchDiff, patch bool) diffJSON

func EnvironmentView

func EnvironmentView(environment model.Environment) environmentJSON

func FromWords added in v0.7.0

func FromWords(plan engine.SubmitPlan) string

FromWords are where a submission pushes from, the fork and its branch: "ada/macports-ports:dockhand/jq-update", or, with no fork found, the branch alone, "dockhand/jq-update, once you have a fork".

func ImpactView

func ImpactView(impact engine.Impact) impactJSON

func LeftoversView

func LeftoversView(leftovers []engine.Leftover) []leftoverJSON

func LinkDetail added in v0.8.0

func LinkDetail(findings []engine.LinkFinding) []linkLineJSON

LinkDetail are a check's link findings as JSON lines (LinkLines), each finding's line carrying an unlinked declaration's port, option, and line, or the pkg-config an undeclared link came through.

func LinkMark

func LinkMark(finding engine.LinkFinding) string

LinkMark is a link finding's mark: !, a notice, where a port is linked and not declared, and none otherwise.

func LinkWords

func LinkWords(finding engine.LinkFinding) string

LinkWords say a link finding (evidence.LinkFinding) as a notice, its mark !, holding nothing: "harbor links libonig.5.dylib from oniguruma (and 1 more of its libraries), which it doesn't declare in depends_lib; depends_lib-append port:oniguruma declares it, which dockhand tidy writes", naming the line tidy writes from the check (the omnidiff session's note 2; docs/designs/declare-linked-libraries.md); or, where the links couldn't be read, so nothing is said of them; or, where each is declared, how many ports they map to.

func ListShown added in v0.6.0

func ListShown(streams term.Streams) int

ListShown is how many of a long list a line names: listShown, or every one with -v, where only --json gave the rest (the docs dig's I37).

func LogsView

func LogsView(logs engine.RunLogs) logsJSON

func MergeLines added in v0.8.0

func MergeLines(s engine.BranchStatus) []string

MergeLines are what status details of an open pull request's merge, a line each: each port's maintainers and how it stands, whom the description mentions, who approved it, and when MacPorts' 72-hour maintainer timeout ends, or that it's a draft; none where there's no open pull request. Who was notified is said as what was read, the description's mentions, never that a maintainer wasn't: MacPorts' bot notifies them as it opens, in a comment that isn't read.

func ModifiedBuildWarning

func ModifiedBuildWarning(plan engine.TidyPlan, checkpoint string) string

modifiedBuildWarning says, for a tidy whose commits name a dockhand built from uncommitted source, how to name one anybody can find before they're submitted.

func NonNil

func NonNil[T any](values []T) []T

func OrNone

func OrNone(value string) string

func OthersJSON added in v0.7.0

func OthersJSON(others []engine.OtherPullRequest) []otherJSON

OthersJSON are a port's other open pull requests, as update and start report them.

func OutdatedView

func OutdatedView(report engine.OutdatedReport) map[string]any

func PassedOn

func PassedOn(checked engine.Evidence) string

PassedOn says where a check that passed built, by the environments' headings: "passed on macOS 15 and macOS 26".

func PhaseMissing

func PhaseMissing(port, phase string, result model.TargetResult) error

phaseMissing says a build recorded no step a --phase names: none at all, where its provider records none, or not that one, with the ones it recorded, as a build that failed at fetch records no install.

func PlanView

func PlanView(plan model.Plan) planJSON

func PortBuildWords

func PortBuildWords(result model.TargetResult) string

portBuildWords say how a build of a port went, for choosing its log.

func PortChangeWords

func PortChangeWords(port engine.PortDiff) string

func PortLogView

func PortLogView(run model.Run, result model.TargetResult, data []byte) portLogJSON

func ProcessesView

func ProcessesView(processes []engine.Process) *[]processJSON

func PullRequestWords

func PullRequestWords(plan engine.SubmitPlan) string

func PushWords

func PushWords(plan engine.SubmitPlan) string

func QueueView

func QueueView(queue []checks.QueuedCheck) *[]queuedRunJSON

QueueView is the queue for status's JSON.

func RenderNext

func RenderNext(next branchstate.Next, reason branchstate.Reason) string

RenderNext is a Next as the command line it names: the one place a verdict's next step becomes words (architecture, 2026-10-22). reason adds the words a row's own next carries, as a submit after someone else's push showing the comparison.

func RenderSteps

func RenderSteps(steps []refusal.Next) []string

RenderSteps are a refusal's steps, each as renderNext renders it, in order.

func RevisionView

func RevisionView(revision model.Revision) revisionJSON

func RunView

func RunView(run model.Run) runJSON

func SayNext

func SayNext(err error) error

SayNext is a refusal whose producer gave what moves it on, as a login to sign in to again or a Tart image to set up, with that said last, as status says a branch's: its words say what happened, and Next the command (R3-31). A composed exit error says its own.

func ServeHolds added in v0.6.0

func ServeHolds(plan engine.SubmitPlan) []string

ServeHolds are the words of each hold serve's submission of the branch would wait on, its majors, floors, holds naming ports first, and undeclared links, a line each, once each, with the decision that answers it (the person's voice); one the person accepted holds nothing, and none hold a person's own submission.

func ServeView

func ServeView(s engine.ServeState) serveJSON

func ServeWords

func ServeWords(s engine.ServeState) string

serveWords are serve's state as a line: "serve: running (pid 34857) · queue: 1 run".

func StageLine

func StageLine(mark, stage, words string) string

StageLine is a stage's one line at the default level, under its change's heading (term.Staged): " ✓ committed jq: update to 1.8.1".

func SubmitView

func SubmitView(plan engine.SubmitPlan) submitJSON

func TidyView

func TidyView(plan engine.TidyPlan) tidyJSON

func UnfoundBuildWords

func UnfoundBuildWords(build engine.UnfoundBuild) string

unfoundBuildWords say a build the commits name in Generated-By that nobody else can find, and why: what it was built from isn't on GitHub until it's pushed there, or it recorded nothing to find. Tidy keeps a commit whose only change would be its Generated-By, unless its build was of uncommitted source, so tidying again isn't what's said here.

func UpdateHeading

func UpdateHeading(named string, update engine.Update, branch model.Branch) string

UpdateHeading is a version update's heading over its stage lines, the port as the person named it: "jq 1.7.1 → 1.8.1 (GitHub tag jq-1.8.1), on branch jq-1.8.1".

func UpdateView

func UpdateView(branch model.Branch, started bool, update engine.Update, plan bool) updateJSON

func UpstreamLines

func UpstreamLines(plan engine.SubmitPlan) []string

upstreamLines are what comparing the branch's upstream archives found, a line each, marked as update marks them: a change a passing build can't catch, and archives that couldn't be compared, with "!". Each names its port when the branch updated several, and, under the Upstream label every list of them has, doesn't say upstream again.

func UpstreamView

func UpstreamView(comparison model.UpstreamComparison) upstreamJSON

UpstreamView is a comparison under the JSON's upstream key, whose changes are worded as under the text's Upstream heading.

func UpstreamWords

func UpstreamWords(change model.UpstreamChange) string

UpstreamWords are a finding as update and status say it: one that holds says so in its word, "held", and one that doesn't carries no mark (part 5, item 2, where "!" meant it held and "·" that it didn't).

func WaitWords added in v0.8.0

func WaitWords(run model.Run) string

WaitWords say when a run was queued, how long it waited for its slot, and when it finished, where it has: "queued 2026-10-31 14:02:11, waited 3m 31s for its slot, finished 2026-10-31 14:20:40". Empty for a run with no start recorded, queued still or recorded before admission kept one, where its wait could only be read from its finish less its took (rc1's G13).

func Where

func Where(places config.Places, dir string) string

Where is a branch's directory after its name, " in ~/Source/…", or nothing where the command runs in it.

func WriteBeforeBuilding added in v0.8.0

func WriteBeforeBuilding(out io.Writer, findings []commitrules.Finding)

WriteBeforeBuilding says the Portfile findings submit would, which a check says before it builds.

func WriteChanges

func WriteChanges(out io.Writer, refreshed engine.RefreshResult)

WriteChanges says what a refresh of the pull requests found changed of each, a line each; its callers say what couldn't be read as they go on (the architecture review of 5897a82, R3-39).

func WriteEstimates added in v0.7.0

func WriteEstimates(out io.Writer, estimates []engine.InstallEstimate, all []model.Environment)

WriteEstimates says what a check will install in each environment, by the port index (engine.InstallEstimates), naming the environment where the plan has several.

func WriteEvaluated added in v0.8.0

func WriteEvaluated(out io.Writer, plan model.Plan)

WriteEvaluated says, for check --plan -v, each target's evaluation in each environment that builds it: its variants as MacPorts resolves them, its dependencies by type, and its configure.args and configure.env, each as MacPorts writes it, a line each where it has one (field testing's curl +sectrust notes, note 8b).

func WriteFindings

func WriteFindings(out io.Writer, plan engine.TidyPlan)

func WriteInstalled added in v0.7.0

func WriteInstalled(out io.Writer, findings []engine.InstallFinding)

WriteInstalled says what a check's builds installed and configure found against the port's previous result in each environment (Then's items 9 and 10), a line each under a heading (InstalledLines); nothing where it has none.

func WriteInvestigated added in v0.8.0

func WriteInvestigated(out io.Writer, s engine.BranchStatus)

WriteInvestigated says a branch that changes nothing is an investigation, as its status row says it, with archive next, for a check's last lines: status's would have said submit, which refuses it (field testing's curl +sectrust notes, note 1). Any other branch, it says nothing of.

func WriteLinks(out io.Writer, findings []engine.LinkFinding)

WriteLinks says a check's link findings, each a notice under a heading; nothing where it has none.

func WriteLint added in v0.7.0

func WriteLint(out io.Writer, findings []engine.LintFinding)

WriteLint says what lint warned of under a heading; nothing where it warned of nothing.

func WriteLogs

func WriteLogs(out io.Writer, places config.Places, logs engine.RunLogs, stopped bool) error

writeLogs says what a check recorded, its state first: a run whose process ended is said as stopped, where it read "running" (field testing's rust check, 2026-10-15).

func WriteNext

func WriteNext(out io.Writer, status engine.BranchStatus)

WriteNext says what moves a branch on, as its attention row does.

func WriteOthers added in v0.7.0

func WriteOthers(out io.Writer, port string, others []engine.OtherPullRequest)

writeOthers names the port's other open pull requests the update found, or why it couldn't look. They stop nothing: submit shows them again, and bump and serve hold on one. WriteOthers names a port's other open pull requests, which stop nothing: submit shows them again, and bump and serve hold on one.

func WritePlainHTTP

func WritePlainHTTP(out io.Writer, switched, plain []engine.PlainURL)

WritePlainHTTP says the port's plain-HTTP links the edit switched to HTTPS, which answered there, and those still over plain HTTP, which MacPorts would have over HTTPS, with whether the https form answers.

func WritePlan

func WritePlan(out io.Writer, plan model.Plan, notes []string, siblings map[model.TargetID]bool, remedy func(model.Unmet) string, shown int)

WritePlan shows a plan, with remedy saying how to give an environment what a target it can't build needs, and shown how many of a long list a line names (ListShown).

func WritePortLog

func WritePortLog(out io.Writer, places config.Places, result model.TargetResult, data []byte, all bool) error

writePortLog prints a port's log. Where its provider recorded where each step of the build began, it lists them first, and prints from the port's own build on, leaving out its dependencies' installs before it: hugo's own phases began near line 46,400 of 47,000 (the hugo exercise). all prints the whole log alone, as it is printed where no steps were recorded.

func WritePushes

func WritePushes(out io.Writer, plan model.Plan)

WritePushes says where a check pushes: "only checking" never hides a write to your fork (Design v3 §9).

func WriteQueue

func WriteQueue(out io.Writer, queue []checks.QueuedCheck, led bool)

WriteQueue is status's list of the checks queued and running, oldest first, where queue listed them: each with its branch, what it checks, where, and its state, a run whose process ended said to be stopped. WriteQueue lists the checks queued and running; led is whether a serve or a drain leads, which a queued check waits on.

func WriteRefreshed

func WriteRefreshed(out io.Writer, refreshed engine.RefreshResult) error

WriteRefreshed says what a refresh of the pull requests found, what changed of each and what couldn't be read. GitHub refusing the read altogether is its error, worded once for every command that reads them (status, clean), as its caller goes on by what was last read.

func WriteResults

func WriteResults(out io.Writer, indent string, evidence engine.Evidence, where bool)

WriteResults shows each target's result, indented. On one environment it is a line each, "jq ✓", the environment named when where says so. On several it is a grid, a row per target and a column per environment headed by its release, macOS 26, since the plan named the environments in full. Each target built says how long it took, and each release how long the check ran there, under the results (the docs dig's I38).

func WriteSubmitPlan

func WriteSubmitPlan(out io.Writer, plan engine.SubmitPlan, noteStill bool)

WriteSubmitPlan is a submission's plan: where it goes, what it pushes, and what holds it. noteStill is where --note can still be added, a preview's or a question's, the only places a missing note is said (part 5, item 3: it was in 56 runs, most where nobody could add one).

func WriteTidyPlan

func WriteTidyPlan(out io.Writer, plan engine.TidyPlan, saved bool)

writeTidyPlan lists a tidy plan's commits: as proposed, with what each combines, keeps, and notes; or, saved, what applying it writes, each commit's whole message as it may have been edited, with its author.

func WriteUpstream

func WriteUpstream(out io.Writer, comparison *model.UpstreamComparison)

writeUpstream reports what comparing the upstream archives found.

func WriteVariants

func WriteVariants(out io.Writer, plan model.Plan)

WriteVariants says what --variants builds: the one port with its default variants plus those given, which MacPorts adds as it opens the port, a -variant leaving a default out, built in place of its default build; or, with each, its defaults and then each variant it declares. curl +gnutls +sectrust got brotli, zstd, idn, psl and http2 too, where "in place of its defaults" read as the defaults dropped (field testing's curl +sectrust notes, note 3).

Types

type AcceptedJSON

type AcceptedJSON struct {
	Port string `json:"port"`
	// Kind is at-base, cause-not-established, blocked-by-accepted, or
	// standing, a dependency's failure accepted for every branch, with the
	// Dependencies it takes.
	Kind         string           `json:"kind"`
	Baselines    []string         `json:"baselines,omitempty"`
	Dependencies []dependencyJSON `json:"dependencies,omitempty"`
	Words        string           `json:"words"`
}

type Attention

type Attention struct {
	Kind               attentionKind
	Branch, What, Next string
}

Attention is one row of what needs you, with the command that moves it.

func AttentionFor

func AttentionFor(s engine.BranchStatus) []Attention

type BatchJSON

type BatchJSON struct {
	Changes []updateJSON  `json:"changes"`
	Skipped []SkippedJSON `json:"skipped"`
	// contains filtered or unexported fields
}

BatchJSON is ship's result, and update --mine's: each change as far as it went, an update's shape with its later steps inside it, and every port the batch left alone, with why, so an empty batch says why it is (the M1's quick stage, B3: a batch offline said null).

func (*BatchJSON) At added in v0.7.0

func (b *BatchJSON) At(i int)

At goes back to the change at i, whose later steps follow: a batch's checks end in any order, and each change's check and submission are its own.

func (*BatchJSON) Gather

func (b *BatchJSON) Gather(step any)

func (*BatchJSON) Next

func (b *BatchJSON) Next()

Next starts the next change's gathering.

func (*BatchJSON) Result

func (b *BatchJSON) Result() any

type BlockJSON

type BlockJSON struct {
	Kind  string `json:"kind"`
	Port  string `json:"port,omitempty"`
	Words string `json:"words"`
}

type BranchJSON

type BranchJSON struct {
	Name      string `json:"name"`
	GitBranch string `json:"git_branch"`
	ID        string `json:"id"`
	State     string `json:"state"`
	Worktree  string `json:"worktree"`
	Managed   bool   `json:"managed"`
	Base      string `json:"base"`
	Head      string `json:"head,omitempty"`
	Missing   bool   `json:"missing,omitempty"`
	// Renamed is the name a branch had before a rename by hand this
	// status followed.
	Renamed string `json:"renamed_from,omitempty"`
	// Cleaned is a merged branch whose Git branch clean removed.
	Cleaned     bool     `json:"cleaned,omitempty"`
	Commits     int      `json:"commits"`
	Edited      []string `json:"edited"`
	Directories []string `json:"directories"`
	Ports       []string `json:"ports"`
	// Changed are the ports the branch changes, each directory's changed
	// subports where its change record says, and Notes say why a port is
	// its directory's, read from the text instead.
	Changed []string `json:"changed_ports"`
	// StartedFor are the ports it was started for, which it may not
	// change yet.
	StartedFor []string          `json:"started_for,omitempty"`
	Notes      map[string]string `json:"port_notes,omitempty"`
	// Releases are where the branch's updates found their versions.
	Releases []releaseJSON `json:"releases"`
	// Standing is what the branch's checks establish of its files as they
	// are now (branchstate.Standing), the one verdict status words, where
	// the JSON gave the runs and left it to be judged again (R3-34).
	Standing string `json:"check_standing"`
	// Latest is the branch's newest finished check, null until one has
	// finished: a check still running is among Active, and isn't the
	// latest until it ends, where null read as no check while one ran.
	Latest      *latestJSON      `json:"latest_check"`
	Active      []runJSON        `json:"active_checks"`
	PullRequest *pullRequestJSON `json:"pull_request"`
	// Held and Assessment are, for a branch serve prepared, what its files'
	// recorded assessments hold it for, and how far they're recorded:
	// available, incomplete, or pending, which a check or a submission
	// collects.
	Held       []string `json:"held,omitempty"`
	Assessment string   `json:"assessment,omitempty"`
	// HeldConcerns are Held, typed, each with where it came from and the
	// rule that raised it, beside held's words.
	HeldConcerns []ConcernJSON `json:"concerns,omitempty"`
	// HandEdits are the branch's hand edits, each its directory, the
	// refusal dockhand left it for, and whether the attempt was adjusted.
	HandEdits []handEditJSON `json:"hand_edits,omitempty"`
	// Detail is what status's text details of a branch shown alone.
	Detail *branchDetailJSON `json:"detail,omitempty"`
	// Moved are the Git-fetched ports whose release's tag named another
	// commit when the update chose it than when the latest check, of the
	// files as they are now, planned it (rule release-moved), or whose
	// assessment read another commit (assessment-moved), which hold a
	// submission nobody looks over. Whether a tag names another commit now
	// (source-moved) takes the network, which status never reads.
	Moved []ConcernJSON `json:"moved,omitempty"`
	// OnMaster is the master dockhand last fetched where it has every
	// change the branch's files make: its work landed by another route.
	OnMaster string `json:"on_master,omitempty"`
}

func BranchView

func BranchView(status engine.BranchStatus) BranchJSON

type BranchRefJSON

type BranchRefJSON struct {
	Name      string `json:"name"`
	GitBranch string `json:"git_branch"`
	Worktree  string `json:"worktree"`
	Base      string `json:"base"`
}

func BranchRef

func BranchRef(branch model.Branch) BranchRefJSON

type ChangesRequestedJSON

type ChangesRequestedJSON struct {
	Login       string `json:"login"`
	Rerequested bool   `json:"rerequested"`
}

ChangesRequestedJSON is a reviewer who requested changes, and whether submit asked them to review again.

type CheckJSON

type CheckJSON struct {
	Branch   string        `json:"branch"`
	Revision *revisionJSON `json:"revision,omitempty"`
	Plan     *planJSON     `json:"plan,omitempty"`
	Run      *runJSON      `json:"run"`
	// Targets are the finished run's results; empty until it finishes.
	Targets []TargetJSON `json:"targets"`
	// Baseline is the baseline check.baseline ran after this check failed.
	Baseline *CheckJSON `json:"baseline,omitempty"`
	// Altered are the kept archives found changed since they were kept,
	// which no guest was given, each said as check says it.
	Altered []string `json:"altered_archives,omitempty"`
	// Lint, Links, and Installed are what the finished check's report
	// says beside its results, each line as it says it: what lint warned
	// of, what its builds link and don't declare, and what they installed
	// against the port's earlier build.
	Lint      []linkLineJSON `json:"lint,omitempty"`
	Links     []linkLineJSON `json:"links,omitempty"`
	Installed []linkLineJSON `json:"installed,omitempty"`
	// PortfileFindings are the Portfile findings submit would say, which
	// check says before it builds, in submit's shape.
	PortfileFindings []findingJSON `json:"portfile_findings,omitempty"`
}

CheckJSON is check's, wait's, and retry's result.

func (*CheckJSON) Gather

func (c *CheckJSON) Gather(step any)

Gather takes a check's result, or the baseline's that looks into it.

func (*CheckJSON) Result

func (c *CheckJSON) Result() any

func (CheckJSON) WithPortfileFindings added in v0.8.0

func (c CheckJSON) WithPortfileFindings(findings []commitrules.Finding) CheckJSON

WithPortfileFindings is a check's result with the Portfile findings it said before building.

type ConcernJSON

type ConcernJSON struct {
	Origin  string `json:"origin,omitempty"`
	Port    string `json:"port"`
	Rule    string `json:"rule"`
	Source  string `json:"source,omitempty"`
	Path    string `json:"path,omitempty"`
	Subject string `json:"subject,omitempty"`
	Class   string `json:"class,omitempty"`
	Detail  string `json:"detail"`
}

ConcernJSON is what a submission nobody looks over waits on a person's look for: where it came from, upstream, the commit rules, or another pull request, where submit gives it; the port, the rule that raised it, what it's about, such as the commit the check planned, how it stands against the base, and its words.

type GitSourceJSON

type GitSourceJSON struct {
	URL          string    `json:"url"`
	Branch       string    `json:"branch,omitempty"`
	Commit       string    `json:"commit,omitempty"`
	Abbreviation string    `json:"abbreviation,omitempty"`
	Unresolved   string    `json:"unresolved,omitempty"`
	ResolvedAt   time.Time `json:"resolved_at"`
}

GitSourceJSON is what a Git-fetched target's build is expected to fetch: its repository and git.branch, and the commit git.branch named when the check was planned, or the abbreviation it begins with, or why neither is known.

func GitSourceView

func GitSourceView(source model.GitSource) GitSourceJSON

type LinkLine added in v0.6.0

type LinkLine struct{ Mark, Words string }

LinkLine is one line of a check's link findings, its mark and words.

func InstalledLines added in v0.7.0

func InstalledLines(findings []engine.InstallFinding) []LinkLine

InstalledLines are a check's install findings as status and the report say them (engine.InstallFinding.Lines), each marked for a look where it asks one.

func LinkLines added in v0.6.0

func LinkLines(findings []engine.LinkFinding) []LinkLine

LinkLines are a check's link findings as lines, the targets whose links couldn't be read for one reason folded into one, "couldn't read what 5 targets link (…): the guest couldn't read them", a line each only where the reasons differ: status said five such lines with no reason (the exiv2 session's notes, 2026-10-24).

func LintLines added in v0.7.0

func LintLines(findings []engine.LintFinding) []LinkLine

LintLines are what lint warned of, a line for each target's warning in an environment: a new port's marked ✗, as they hold submit, an update's a notice, and a new port lint didn't nitpick said so (the docs dig's I13).

type LogStepJSON

type LogStepJSON struct {
	Name string `json:"name"`
	Line int    `json:"line"`
}

LogStepJSON is where a step of a build began in its log: the line its output starts on, counting from 1.

type PortLogElsewhereJSON

type PortLogElsewhereJSON struct {
	Execution   string          `json:"execution"`
	Environment environmentJSON `json:"environment"`
	Outcome     string          `json:"outcome"`
	Tests       string          `json:"tests,omitempty"`
}

type RevbumpJSON

type RevbumpJSON struct {
	Branch  BranchRefJSON   `json:"branch"`
	Started bool            `json:"started"`
	Subject string          `json:"subject"`
	Applied bool            `json:"applied"`
	Ports   []RevbumpedJSON `json:"ports"`
}

type RevbumpedJSON

type RevbumpedJSON struct {
	Port   string `json:"port"`
	Before int    `json:"before"`
	After  int    `json:"after"`
}

type ReviewJSON added in v0.7.0

type ReviewJSON struct {
	Number     int           `json:"number"`
	Title      string        `json:"title"`
	URL        string        `json:"url"`
	Head       string        `json:"head"`
	Commits    int           `json:"commits"`
	Ports      []string      `json:"ports"`
	Permission string        `json:"permission"`
	Summary    string        `json:"summary"`
	Findings   []findingJSON `json:"findings"`
	Resolved   []string      `json:"resolved"`
	Body       string        `json:"body"`
	Posted     string        `json:"posted"`
	PostedURL  string        `json:"posted_url,omitempty"`
	// Check is review --check's check, as check reports it, inside the
	// review, where its result replaced the review's (Codex's review of
	// 8e314b96, finding 9).
	Check *CheckJSON `json:"check,omitempty"`
}

func ReviewView

func ReviewView(report engine.ReviewReport) ReviewJSON

func (*ReviewJSON) Gather added in v0.7.0

func (r *ReviewJSON) Gather(step any)

Gather takes a step's result into the review's: the review again, as posting says it, keeping the check, or the check.

func (*ReviewJSON) Result added in v0.7.0

func (r *ReviewJSON) Result() any

type Row added in v0.8.0

type Row struct {
	ID     model.BranchID
	Bucket branchstate.Bucket
	// Mark is what a row needing you is, as its attention marks it, ⋯ for
	// one under way, and Unmarked for the rest.
	Mark string
	// Name is its short name, as a command names it, and Branch the name
	// a row shows, an archived one's said, as clean says it.
	Name, Branch string
	// Ports is the first port it changes, with the version its update
	// chose, and how many more: "jq 1.8.1 +2".
	Ports string
	// Work is its commits and edits, Check its checks' standing, and State
	// what it's doing, the two together.
	Work, Check, State string
	// PR is its pull request's number, review, CI mark, and when MacPorts'
	// maintainer timeout ends, where a port waits on it.
	PR string
	// Next is the command that moves it on: its attention's where it needs
	// you, what follows its work where it's under way, none where it waits
	// on others or is done.
	Next string
}

Row is a branch as a line of a table: the words status's overview and dockhand console both show of it, from this one projection, so the two can't disagree.

func BranchRow added in v0.8.0

func BranchRow(status engine.BranchStatus) Row

BranchRow is a branch's row, by the bucket its facts put it in (branchstate.BucketOf).

type SkippedJSON

type SkippedJSON struct {
	Port   string `json:"port"`
	Reason string `json:"reason"`
}

SkippedJSON is a port a batch left alone, and why: an update already in a branch, one it couldn't check, or one held for a look.

type StatusJSON

type StatusJSON struct {
	Attention []attentionJSON `json:"attention"`
	Branches  []BranchJSON    `json:"branches,omitempty"`
	// Serve is serve's state as a line, and ServeState as fields.
	Serve      string     `json:"serve,omitempty"`
	ServeState *serveJSON `json:"serve_state,omitempty"`
	// Queue is the checks queued and running, oldest first, beside the
	// branches: what queue listed.
	Queue *[]queuedRunJSON `json:"queue,omitempty"`
	// Processes are the dockhand processes working on the checkout.
	Processes *[]processJSON `json:"processes,omitempty"`
	// Changed are what checks are building in of the person's own, and
	// what checks left changed (engine.Changes).
	Changed []changeJSON `json:"changed,omitempty"`
}

type SubmittedJSON

type SubmittedJSON struct {
	Number  int    `json:"number"`
	URL     string `json:"url"`
	Created bool   `json:"created"`
	Pushed  bool   `json:"pushed"`
	Draft   bool   `json:"draft"`
	// UpdatedTitle and UpdatedDescription say what was rewritten of a pull
	// request that existed.
	UpdatedTitle       bool `json:"updated_title"`
	UpdatedDescription bool `json:"updated_description"`
	// ChangesRequestedBy are the reviewers whose last review of a pull
	// request that existed requested changes, as GitHub last reported
	// them, and whether submit asked each to review again
	// (submit.rerequest_review).
	ChangesRequestedBy []ChangesRequestedJSON `json:"changes_requested_by"`
}

type TargetJSON

type TargetJSON struct {
	Name     string `json:"name"`
	Portfile string `json:"portfile"`
	Subport  string `json:"subport,omitempty"`
	Kind     string `json:"kind"`
	Role     string `json:"role"`
	// Added is a port the change adds, which lint checks with --nitpick;
	// MovedFrom the base's directory of one it moves or renames here, as
	// the plan's text says "(moved from …)" or "(renamed from …)".
	Added     bool     `json:"added,omitempty"`
	MovedFrom string   `json:"moved_from,omitempty"`
	DependsOn []string `json:"depends_on,omitempty"`
	// NeedsXcode are the environments where the target needs Xcode.
	NeedsXcode []environmentJSON `json:"needs_xcode,omitempty"`
	// Results are the target's outcome in each environment, in the plan's
	// order; empty in a plan that has not run.
	Results []resultJSON `json:"results,omitempty"`
	Passed  *bool        `json:"passed,omitempty"`
}

func EvidenceView

func EvidenceView(evidence engine.Evidence) []TargetJSON

EvidenceView is a finished run's targets with their results.

type TidyAppliedJSON

type TidyAppliedJSON struct {
	Checkpoint string   `json:"checkpoint"`
	Commits    []string `json:"commits"`
	// Kept is how many of the leading commits are the branch's own, as
	// they were.
	Kept int `json:"kept,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL