fix(action): allow forward sync from trailer commits
This commit is contained in:
@@ -554,7 +554,9 @@ Runs on a cron schedule (never triggered by subrepo pushes):
|
||||
|
||||
### Loop prevention
|
||||
|
||||
Bot commits include a git trailer like `Josh-Sync-Origin: forward/main/2024-02-12T10:30:00Z`. Each sync direction filters out commits with this trailer, preventing changes from bouncing back and forth. The CI action also has a loop guard that skips entirely if the HEAD commit has the trailer.
|
||||
Bot commits include a git trailer like `Josh-Sync-Origin: forward/main/2024-02-12T10:30:00Z`. Reverse sync filters out commits with this trailer, preventing changes from bouncing back from the target repo into the source repo.
|
||||
|
||||
The CI action does not skip forward sync solely because the checked-out HEAD commit has a sync trailer. A repo can be a valid middle hop: it may receive a sync commit from one repository and still need to forward its filtered subtree to another repository. Forward sync relies on tree comparison, sync state, and merge checks to decide whether anything should be pushed.
|
||||
|
||||
### State tracking
|
||||
|
||||
|
||||
Reference in New Issue
Block a user