Skip to main content
POST
Połącz repozytorium GitHub

Autoryzacje

Authorization
string
header
wymagane

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parametry ścieżki

shopId
string
wymagane

ID sklepu (ObjectId)

Treść

application/json
repo
string
wymagane
Pattern: ^[A-Za-z0-9_.-]{1,100}\/[A-Za-z0-9_.-]{1,100}$
Przykład:

"acme/shop-site"

branch
string
wymagane
Required string length: 1 - 200
Przykład:

"main"

mode
enum<string>

app = GitHub App; token = fine-grained PAT. Brak: token, gdy podano token, inaczej app z instalacją zweryfikowaną dla sklepu, która widzi repo.

Dostępne opcje:
app,
token
autoDeploy
boolean
installationId
number

Tryb app: id instalacji zweryfikowanej przez /git/install

Wymagany zakres: x >= 1
token
string

Tryb token: fine-grained PAT (Contents: write, opcjonalnie Webhooks: write)

Required string length: 20 - 255
Pattern: ^(github_pat_|ghp_)[A-Za-z0-9_]+$

Odpowiedź

OK

success
boolean
Przykład:

true

data
object
message
string