tickets
All repositories: gitoria
2.2 KB
#!/usr/bin/env bash# tools/sync-components.sh — copy the components.hybriel.worldapi.org blocks tickets uses, BYTE-VERBATIM from a commit# (mission 016; the model is layouts.worldapi.org's tools/sync-components.sh).# tools/sync-components.sh [commit] copy from <commit> (default: HEAD of the source repo), write components/SOURCE# tools/sync-components.sh --check compare the copies with the commit in components/SOURCE (exit 1 on any difference)# Source repo: $COMPONENTS_REPO (default loreana /media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org). The files come out of# git (`git show <commit>:<path>`), not the working tree, so uncommitted edits there never land here. Never edit the copies:# change them in components.hybriel, commit there, run this, then the gates (README "Comments").set -euo pipefailAPP="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"SRC="${COMPONENTS_REPO:-/media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org}"# what is copied: each block's own file + README (no demo.hl). comments.hl imports ../md-editor/md-editor.hl and (mission 017,# attachments) ../files-upload/files-upload.hl; md-editor and files-upload import ../icons/icons.hl (F4, the shared Icon).FILES=(comments/comments.hl comments/README.mdmd-editor/md-editor.hl md-editor/README.mdicons/icons.hl icons/README.mdfiles-upload/files-upload.hl files-upload/README.md)# a git worktree has a .git FILE, a clone a .git directory: either is a repo[ -e "$SRC/.git" ] || { echo "no git repo at $SRC (set COMPONENTS_REPO)"; exit 2; }if [ "${1:-}" = "--check" ]; thenREF="$(head -n1 "$APP/components/SOURCE" | cut -d' ' -f1)"bad=0for f in "${FILES[@]}"; doif ! git -C "$SRC" show "$REF:components/$f" | cmp -s - "$APP/components/$f"; then echo "DIFFERS: components/$f (vs $REF)"; bad=1; fidone[ $bad = 0 ] && echo "verbatim: ${#FILES[@]} files = components.hybriel $REF"exit $badfiREF="$(git -C "$SRC" rev-parse --short "${1:-HEAD}^{commit}")"for f in "${FILES[@]}"; domkdir -p "$APP/components/$(dirname "$f")"git -C "$SRC" show "$REF:components/$f" > "$APP/components/$f"doneecho "$REF $(git -C "$SRC" log -1 --format='%cs %s' "$REF")" > "$APP/components/SOURCE"echo "copied ${#FILES[@]} files from components.hybriel $REF""$0" --check
Branches
Latest commits
- 0788e65f|||PR re-vendor Hybriel day72mre
- 8a7f475aMerge branch 'records-t33' into mainTickets
- e685d0c2|||PR records: PROCEDURES merge callmre
- b42aff2b|||PR records: GO 2026-11-23, workers L33 O34, PROCEDURES.mdmre
- ed091d44Merge branch 'records' into mainTickets
- 180c0cdb|||PR records: ticket move live (M32), hybriel#439mre
- 497cae7bMerge branch 'm32-move' into mainTickets
- 772e0696|||PR Allow project admins to move tickets between their projectsmre
- be92a560Merge branch 'records' into mainTickets
- 0daf2ea8|||PR records: PR-only workflow, #50 donemre
- 0185d0b6Log PR 1 deploymre
- f5bf16e2Mission 031: deploy PR 1mre
- c69cd5f3Merge branch 'pr-flow' into mainTickets
- cc56798cLog gitoria PR-only requestmre
- d876d0b2|||PR README: changes land as PRsmre
- fd83ac1fconductor: caramboleyo is the user, not owner/creatorApollo
- 3b858c91Log backup hard-link fixmre
- 7f6b37a0deploy.sh backup: tar --hard-dereference (hard links broke mpackdb sidecars on restore)mre
- e93711d9Log E30 livemre
- 59c02e4dMerge e30: preserve edited state note labels in Markdownmre