跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support

Lists the repositories of this instance that depend on the repository

GET
/repos/{owner}/{repo}/security/dependents
curl --request GET \
--url 'https://gitea.example.com/api/v1/repos/example/example/security/dependents?page=1' \
--header 'Authorization: Basic <credentials>'

Gitea Enterprise only. This endpoint is not part of the community edition.

Read from the dependencies the default branch of every repository was last scanned with. A repository the reader cannot read is left out.

owner
required
string

Name of the owner

repo
required
string

Name of the repository

page
integer
default: 1 >= 1

Page number of results to return (1-based)

limit
integer

Number of items per page

DependentList

Media typeapplication/json
Array<object>
Dependent is a repository of this instance that depends on the repository asked about.
object
branch

The default branch of that repository, the branch the dependency was read from

string
ecosystem
string
manifest_path

The file that declares the dependency

string
name
string
ref

Tag or commit of the repository asked about the version points at

string
repository

Full name (owner/repo) of the repository that depends

string
version
string
Examplegenerated
[
{
"branch": "example",
"ecosystem": "example",
"manifest_path": "example",
"name": "example",
"ref": "example",
"repository": "example",
"version": "example"
}
]

APINotFound is a not found empty response