Skip to content

Detect a repository's framework

GET
/teams/{teamId}/github/repos/{owner}/{repo}/detect
curl --request GET \
--url https://api.deploybase.eu/api/v1/teams/example/github/repos/example/example/detect

Runs the same detection rules as POST /projects/detect over the repository, through the GitHub API. framework, package_manager and signals are the original advisory fields (framework: null when unsure); settings and checks are the full answer with a source for every value.

teamId
required
string

Team UUID

owner
required
string

Repository owner

repo
required
string

Repository name

ref
string

Branch, tag or SHA (defaults to the repo’s default branch)

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"data": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Repository not found

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

No GitHub App connection

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live a8b7eb1d built