Skip to main content
This page documents the earlier Code Storage SDKs: @pierre/storage, pierre-storage, and code-storage-go. New code uses the Pierre SDK. To move code to the new SDK, use the pierre-migrate skill.
For repos that have been configured for Git Sync, you can force a pull with this command. It throws an error in any situation that doesn’t indicate a successful pull.
Note this method is useful when you want to trigger Git Sync on demand or when you manage GitHub webhook delivery yourself.

Options

string
deprecated
Deprecated. Omit it. The option has no effect: a pull syncs every branch and tag of the upstream.
string
Token TTL for this invocation in seconds.
object[]
Ordered ref policy rules ({ pattern, ops? }) in the JWT for this call. Code Storage uses the first rule that matches the target ref. Python: ref_policies. Go: RefPolicies with type storage.RefPolicyList. See Ref Policies.

Response

Returns void. Throws an error if the pull fails or if the repository is not configured for Git Sync.