repositories
Repositories served by the platform itself
- GET /git/api/repositories
List repositoriesgit:ListRepositories
- POST /git/api/repositories
Create a repositorygit:CreateRepository
- POST /git/api/repositories/import
Import a repository from GitHub, GitLab or a git URL, optionally as a mirrorgit:CreateRepository
- POST /git/api/repositories/{repoId}/fork
Fork a repository of the organizationgit:CreateRepository
- POST /git/api/repositories/{repoId}/sync-fork
Fast-forward a fork's branch to its parent'sgit:PushRepository
- GET /git/api/repositories/{repoId}/import
How far an import has come: phase, branches, tags and pull requests so far, started and finished, or why it failedgit:GetRepository
- POST /git/api/repositories/{repoId}/import/retry
Start a failed import again from the same sourcegit:UpdateRepository
- POST /git/api/repositories/{repoId}/mirror/sync
Fetch a mirror from its source nowgit:UpdateRepository
- GET /git/api/repositories/{repoId}/mirror
A mirror's last day (syncs, failures, lag), recent syncs and failuresgit:GetRepository
- PATCH /git/api/repositories/{repoId}/mirror
Change a mirror's interval, the minute poll, or shadow CIgit:UpdateRepository
- POST /git/api/repositories/{repoId}/mirror/shadow-run
Run a shadowed mirror's workflows on a branch's current head now (default: the default branch)ci:StartWorkflow
- GET /git/api/repositories/{repoId}/shadow-comparisons
A shadowed mirror's newest commits: the source's CI and ours side by side, in countsci:ListRuns
- GET /git/api/repositories/{repoId}/shadow-comparisons/{sha}
One commit: every workflow and job, the source's result and ours, and the verdictci:ListRuns
- DELETE /git/api/repositories/{repoId}/mirror
Stop mirroring: syncing ends and pushes become possible; history, branches, tags and pull requests staygit:StopMirroring
- PUT /git/api/repositories/{repoId}/push-mirror
Copy every push to a remote outside Deutsche Cloud (branches and tags)git:ConfigurePushMirror
- POST /git/api/repositories/{repoId}/push-mirror/sync
Push to the push mirror nowgit:ConfigurePushMirror
- DELETE /git/api/repositories/{repoId}/push-mirror
Stop copying pushes to the remote; it keeps what it hasgit:ConfigurePushMirror
- GET /git/api/repositories/{repoId}
Describe one repositorygit:GetRepository
- PATCH /git/api/repositories/{repoId}
Change description, visibility, default branch or archive stategit:UpdateRepository
- DELETE /git/api/repositories/{repoId}
Delete a repositorygit:DeleteRepository
branches
Refs, and the console-side equivalent of pushing to them
commits
History, individual commits, and console-made commits
files
Reading the working tree at a ref
pulls
Pull requests, backed by real merges
merge-queue
A protected branch's merge queue (GitHub's merge queue)
releases
Named, published tags; publishing one starts `on: release` workflows
release-assets
Files attached to a release — binaries, archives, checksums
security
Security & quality: the security policy, secret scanning, dependency and code scanning alerts
- GET /git/api/repositories/{repoId}/security
The repository’s security overview: settings, policy, open alert countsgit:ListSecurityAlerts
- PATCH /git/api/repositories/{repoId}/security/settings
Turn secret push protection or dependency alerts on or off, set the file size limitgit:UpdateRepository
- GET /git/api/security/overview
Open alerts and protection settings for every repository you may seegit:ListSecurityAlerts
- GET /git/api/repositories/{repoId}/security/secret-alerts
Secrets push protection found: blocked, bypassed and resolved, plus scan gapsgit:ListSecurityAlerts
- PATCH /git/api/repositories/{repoId}/security/secret-alerts/{alertId}
Say what was done about a bypassed secret (revoked, false positive, …)git:UpdateSecurityAlert
- GET /git/api/repositories/{repoId}/security/dependency-alerts
Vulnerable dependencies in the default branch’s lockfilesgit:ListSecurityAlerts
- PATCH /git/api/repositories/{repoId}/security/dependency-alerts/{alertId}
Dismiss a dependency alert with a reason, or reopen itgit:UpdateSecurityAlert
- GET /git/api/repositories/{repoId}/security/dependency-alerts/{alertId}
One dependency alert: the advisory in full, CVSS, links, why the package is installed, and every place it isgit:ListSecurityAlerts
- POST /git/api/repositories/{repoId}/security/dependency-alerts/fix
Fix the security issues of this repository: open a pull request that bumps the vulnerable dependencies of its package-lock.json and pnpm-lock.yamlgit:CreatePullRequest
- GET /git/api/repositories/{repoId}/security/dependency-alerts/fix
The last fix pull request asked for, and the open onesgit:ListSecurityAlerts
- POST /git/api/repositories/{repoId}/security/dependency-alerts/scan
Scan the default branch’s lockfiles nowgit:UpdateSecurityAlert
- GET /git/api/repositories/{repoId}/security/code-scanning-alerts
Code scanning alerts on the default branchgit:ListSecurityAlerts
- PATCH /git/api/repositories/{repoId}/security/code-scanning-alerts/{alertId}
Dismiss a code scanning alert with a reason, or reopen itgit:UpdateSecurityAlert
- POST /git/api/repositories/{repoId}/code-scanning/sarifs
Upload a SARIF 2.1.0 file of code scanning results for a commitgit:UploadCodeScanningResults
- GET /git/api/repositories/{repoId}/commits/{sha}/code-scanning
Code scanning results reported for one commit, per toolgit:ListSecurityAlerts
issues
Issues: bugs, tasks and CI alerts, with labels, assignees and comments
labels
A repository’s labels, shared by its issues and pull requests
tag-protection
Tag patterns only holders of git:PushProtectedTag may create, move or delete
commit-statuses
Pass/fail an external tool reports on a commit; a required check can name one
branch-protection
Rules that constrain what may land on a branch
deploy-keys
Per-repository SSH keys for machines
webhooks
Outbound notifications on repository events
webhook-deliveries
A webhook's recent deliveries (30 days), and sending one again
access-tokens
HTTP credentials for cloning and pushing
ssh-keys
Your SSH public keys for git over SSH
attachments
Images and video attached to pull request comments
github
Connect GitHub: installations of the platform's GitHub App, repositories mirrored and pushed back through them
Generated from the API description, the same one the API checks requests against and the CLI is built from.