İçeriğe geç

Git

GitHub bağlantısı, derlemeler ve dal önizlemeleri.

Bu sayfada

Kavramlar: Git ve CI

Uç özetleri OpenAPI belgesinden gelir ve İngilizcedir.

GET/v1/projects/{project}/git

Git connection and settings: GitHub repository, production branch, automatic deploys and the direct push address

İşlem (MCP aracı)
getProjectGit
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKGitSettings
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

PUT/v1/projects/{project}/git

Connect a GitHub repository (from the team's installations) or change branch settings. Turning on automatic production deploys needs versions.promote

İşlem (MCP aracı)
setProjectGit
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
repositoryİsteğe bağlıstring
installationİsteğe bağlıinteger
productionBranchİsteğe bağlıstring
autoDeployProductionİsteğe bağlıboolean
autoDeployPreviewsİsteğe bağlıboolean

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKGitSettings
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
503ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

DELETE/v1/projects/{project}/git

Disconnect the GitHub repository; versions and branch previews stay

İşlem (MCP aracı)
disconnectProjectGit
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
204Disconnectedİçerik yok
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/git/builds

The last 50 Git builds

İşlem (MCP aracı)
listGitBuilds
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/projects/{project}/git/builds/{build}/approve

Approve a pull request build from a fork; it gets the project's environment variables

İşlem (MCP aracı)
approveGitBuild
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring
buildZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKGitBuild
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/projects/{project}/branches

Branch preview addresses and the version each one serves

İşlem (MCP aracı)
listProjectBranches
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectZorunluyolstring

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.