Phase 5 part 1: read a site's section types and pages

Sites → Sections and pages reads the website's Hugo repository: each
section type with the README's description, the fields in use and the
layout's, the pages using it and a real example; the pages and their
sections; the latest commits. Working copies are now held by one job at a
time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 13:52:35 -07:00
co-authored by Claude Opus 5.5
parent 00e6deee00
commit 1152cd448b
15 changed files with 958 additions and 11 deletions
+2 -1
View File
@@ -475,10 +475,11 @@ func (ap *Applier) ApplyBrief(ctx context.Context, d *db.DB, id int64, confirmed
}
func (ap *Applier) applyBrief(ctx context.Context, d *db.DB, b *Brief) error {
wc, full, branch, err := ap.workingCopy(ctx)
wc, full, branch, err := ap.WorkingCopy(ctx)
if err != nil {
return err
}
defer wc.Release()
canBuild, note := buildCheck(ctx, wc)
work := fmt.Sprintf("supermarket/page-%d", b.ID)
if err := wc.NewBranch(ctx, work); err != nil {