divinci-ai/Sync Fork Action

Keep a fork branch in sync with an upstream repository. Composite, auditable, no vendored code.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
upstream_repositoryThe upstream repository to sync FROM. Either "owner/repo" (resolved to https://github.com/owner/repo.git) or a full https URL.yes
upstream_branchThe branch on the upstream repository to sync from (e.g. main).yes
target_branchThe branch on THIS fork to sync into and push (e.g. main).yes
github_tokenToken used to push to this fork (and to read the upstream when it is on github.com and no upstream_token is given). Defaults to the workflow token.no${{ github.token }}
upstream_tokenOptional token used ONLY to fetch from the upstream repository. Set this when the upstream is private and github_token cannot read it. Leave empty for public upstreams.no""
sync_modeHow to integrate upstream commits into the target branch: "merge" (default, creates a merge commit when needed), "rebase" (replay target commits on top of upstream), "reset" (hard-reset target to exactly match upstream; force-pushes).nomerge
fetch_argsExtra args appended to `git fetch upstream` (e.g. --tags). TRUSTED INPUT: these are passed to git unquoted and must never come from untrusted data.no""
merge_argsExtra args appended to the integration command (git merge/rebase) for "merge"/"rebase" modes (e.g. --ff-only). TRUSTED INPUT.no""
push_argsExtra args appended to `git push`. For "reset" mode a force flag is added automatically unless you supply your own here. TRUSTED INPUT.no""
git_user_nameName used for the local sync commit author/committer.nogithub-actions[bot]
git_user_emailEmail used for the local sync commit author/committer.no41898282+github-actions[bot]@users.noreply.github.com
dry_runWhen "true", report what would be synced but do not integrate or push.nofalse
namedescription
has_new_commits"true" when the upstream had commits the target branch was missing.
commit_countNumber of upstream commits the target branch was behind.
upstream_shaThe resolved commit SHA of the upstream branch tip.