REST API 现已经过版本控制。 有关详细信息,请参阅“关于 API 版本控制”。
存储库
使用 REST API 创建、管理以及控制公共和私有 GitHub Enterprise Cloud 存储库的工作流。
- 存储库
- List organization repositories
- Create an organization repository
- Get a repository
- Update a repository
- Delete a repository
- Enable automated security fixes
- Disable automated security fixes
- List CODEOWNERS errors
- List repository contributors
- Create a repository dispatch event
- List repository languages
- List repository tags
- List repository teams
- Get all repository topics
- Replace all repository topics
- Transfer a repository
- Check if vulnerability alerts are enabled for a repository
- Enable vulnerability alerts
- Disable vulnerability alerts
- Create a repository using a template
- List public repositories
- List repositories for the authenticated user
- Create a repository for the authenticated user
- List repositories for a user
- 存储库自动链接
- List all autolinks of a repository
- Create an autolink reference for a repository
- Get an autolink reference of a repository
- Delete an autolink reference from a repository
- 仓库内容
- Get repository content
- Create or update file contents
- Delete a file
- Get a repository README
- Get a repository README for a directory
- Download a repository archive (tar)
- Download a repository archive (zip)
- 前叉
- Git LFS
- 规则
- Get rules for a branch
- Get all repository rulesets
- Create a repository ruleset
- Get a repository ruleset
- Update a repository ruleset
- Delete a repository ruleset
- 存储库标记