v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

add a push mirror to the repository

post/repos/{owner}/{repo}/push_mirrors

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Request body

intervalstring

The sync interval for automatic updates

remote_addressstring

The remote repository URL to push to

remote_passwordstring

The password for authentication with the remote repository

remote_usernamestring

The username for authentication with the remote repository

sync_on_commitboolean

Whether to sync on every commit

Response

PushMirror

createdstring date-time
intervalstring

The sync interval for automatic updates

last_errorstring

The last error message encountered during sync

last_updatestring date-time
remote_addressstring

The remote repository URL being mirrored to

remote_namestring

The name of the remote in the git configuration

repo_namestring

The name of the source repository

sync_on_commitboolean

Whether to sync on every commit