GitHub

Configure a GitHub mirror

Admits native mirror configuration using server-resolved provider and native endpoints. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/github/mirror

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token

Path parameters

ownerstring required
repostring required

Request body

requestIdstring required
sourceRefstring required
targetRefstring required
syncPolicy'manual' | 'github-leader'
syncPullRequestsfalse
syncIssuesfalse
maxPackBytesinteger
installationIdinteger required
repositoryIdinteger required
expectedVersioninteger required

Response

Response for status 200

jobIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.