Public Repositories

Detect presets for a public repository (supports GitHub and GitLab)

get/git/public/{provider}/{owner}/{repo}/presets

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/git/public/{provider}/{owner}/{repo}/presets
  • Auth: none declared

Path parameters

providerstring required

Git provider (github or gitlab)

ownerstring required

Repository owner

repostring required

Repository name

Query parameters

base_urlstring nullable

HTTPS/443 origin of a self-hosted GitLab instance. Requires authentication and git_repositories:read.

branchstring nullable

Branch name to detect presets for (default: repository's default branch)

freshboolean

Force fetch fresh data, bypassing cache (default: false)

Response

Detected presets

branchstring required

Branch name where presets were detected

Changes

No recorded changes to this operation across all 50 revisions of this API.