mirror of
https://github.com/hanzoai/forge.git
synced 2026-11-23 03:44:02 +00:00
The fetch moved refs/upstream/* before the push, so a push cut short by a deploy, or refused, left the forge behind with upstream recorded as dealt with, and nothing looked at it again. Fetch into refs/upstream/staging and record a tip per ref after its push succeeds, or it is found equal or ahead, or it is skipped for good reason; the record is written on a context that outlives the request. A successful push out records the tips it put on GitHub too, so a branch pushed out and then deleted here is not new to the next inbound sync. A first sync of a repo that has content records branches only; a tag the forge lacks is created, tags being immutable. The sweep queues an inbound sync on the push mirror's own inbound clock. An empty repo takes GitHub's default branch first, as its default, then the other branches in one push, then every tag in one push that skips the hooks and makes the releases from them, so old tags raise no push events and run no release workflows. A notice is raised once per (repository, ref, reason) for a week, kept in the cache rather than looked up in the notice table. Each ref is read again before it is pushed, and the run stops if the repo is archived meanwhile. A rename that turns the sync off is a warning. LLM.md now says what the push path enforces and what it does not, which protected-branch settings the sync user needs, and that a GitHub writer's pushes run Actions here with the org's secrets. Claude-Session: https://claude.ai/code/session_015XYKLo5aivJF2MHLneVUYc