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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user