Skip to main content
POST
Link a GitHub repository

Authorizations

Authorization
string
header
required

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

Path Parameters

functionId
string
required

Zavu Function ID.

Body

application/json
owner
string
required
Example:

"acme"

repo
string
required
Example:

"order-bot"

branch
string
default:main
rootDir
string

Subdirectory holding the project, for monorepos.

Example:

"apps/bot"

autoDeploy
boolean
default:true

Response

Link created. The only response that ever carries webhookSecret.

A GitHub repository bound to a function. A push to branch deploys the function. A function holds at most one link.

webhookUrl
string<uri>
required

Endpoint that receives GitHub's push deliveries. Only needed on a manual link, where you add it to the repository yourself.

webhookSecret
string

Shared secret for the repository's webhook. Returned only when creating a manual link, and only there — every later read strips it, and re-linking mints a new one. Absent entirely on an app link, which needs no secret of its own.

Example:

"ghs_a1b2c3..."