capabilities.work

Sync Mirror And Confirm Branch

A 3-step recipe with Gitea. We can help you get access.

Recipe · 3 steps

Sync Mirror And Confirm Branch

with Gitea · Software Construction Management

Confirm a repo is a mirror, sync it, and verify a branch.

  1. Read the repository to confirm it is a mirror before syncing.
  2. Trigger a mirror-sync to pull the latest from upstream.
  3. Look up the branch and retry until it is returned after the sync.
What you'll need to have ready
  • authToken: Authorization header value, e.g. "token <personal-access-token>".
  • owner: Owner of the repository.
  • repo: Name of the mirrored repository.
  • branch: Branch to verify is present after the sync.
For your developer

Arazzo workflow gitea:mirror-sync, 3 operations: repoGet → repoMirrorSync → repoGetBranch. Specs on APIs.io.