A repo's forks
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forksconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forks"
response = requests.get(url)
print(response.text){
"data": [
{
"repo": "kai/demo-mod",
"name": "<string>",
"visibility": "open",
"created_at": "2023-11-07T05:31:56Z",
"yours": true
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Repos
A repo's forks
The forks you can reach, at most 100: first your orgs’ own, whatever their visibility, then everyone else’s open ones, each newest first. Yours say yours, so this finds your fork of a repo. Anyone else’s fork is quiet until it has a public release: it’s left out here, as it is from fork_count and from search, though its own page and repo are where they were.
GET
/
projects
/
{owner}
/
{slug}
/
repo
/
forks
A repo's forks
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forksconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/repo/forks"
response = requests.get(url)
print(response.text){
"data": [
{
"repo": "kai/demo-mod",
"name": "<string>",
"visibility": "open",
"created_at": "2023-11-07T05:31:56Z",
"yours": true
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}