Skip this step when GitHub was not chosen. Otherwise call POST /repos/{owner}/{repo}/push_mirrors with remote_address (the GitHub HTTPS URL built from GITHUB_WEB_URL and the GitHub owner, without credentials), remote_username (GITHUB_USER), remote_password (GITHUB_PAT), an interval and sync_on_commit. Gitea has a known issue where sync_on_commit can be ignored on API creation, so read the result back, trigger push_mirrors-sync, and report the effective setting. The PAT needs push access to the target repository (classic repo scope, or a fine-grained token with Contents write). Stop with a clear error if it is missing. Confirm the mirror feature is enabled on the Gitea server.
Phase: MIL-002
Reference: [UC-001]
Skip this step when GitHub was not chosen. Otherwise call `POST /repos/{owner}/{repo}/push_mirrors` with `remote_address` (the GitHub HTTPS URL built from `GITHUB_WEB_URL` and the GitHub owner, without credentials), `remote_username` (`GITHUB_USER`), `remote_password` (`GITHUB_PAT`), an interval and `sync_on_commit`. Gitea has a known issue where `sync_on_commit` can be ignored on API creation, so read the result back, trigger `push_mirrors-sync`, and report the effective setting. The PAT needs push access to the target repository (classic `repo` scope, or a fine-grained token with Contents write). Stop with a clear error if it is missing. Confirm the mirror feature is enabled on the Gitea server.
Phase: MIL-002
Reference: [UC-001]
Tirsvad
added this to the MIL-002 Repositories and Mirror milestone 2026-10-05 07:48:15 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Skip this step when GitHub was not chosen. Otherwise call
POST /repos/{owner}/{repo}/push_mirrorswithremote_address(the GitHub HTTPS URL built fromGITHUB_WEB_URLand the GitHub owner, without credentials),remote_username(GITHUB_USER),remote_password(GITHUB_PAT), an interval andsync_on_commit. Gitea has a known issue wheresync_on_commitcan be ignored on API creation, so read the result back, triggerpush_mirrors-sync, and report the effective setting. The PAT needs push access to the target repository (classicreposcope, or a fine-grained token with Contents write). Stop with a clear error if it is missing. Confirm the mirror feature is enabled on the Gitea server.Phase: MIL-002
Reference: [UC-001]