Skip to main content

search_repo

Creates, updates, deletes, gets or lists a search_repo resource.

Overview

Namesearch_repo
TypeResource
Idvercel.integrations.search_repo

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
gitAccountobject
reposarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
git_namespacesselectteamIdquery, namespaceId, provider, installationId, hostLists git repositories linked to a namespace id for a supported provider. A specific namespace id can be obtained via the git-namespaces endpoint. Supported providers are github, gitlab and bitbucket. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
teamIdstringThe Team identifier or slug to perform the request on behalf of.
hoststringThe custom Git host if using a custom Git provider, like GitHub Enterprise Server
installationIdstring
namespaceIdstring
provider
querystring

SELECT examples

Lists git repositories linked to a namespace id for a supported provider. A specific namespace id can be obtained via the git-namespaces endpoint. Supported providers are github, gitlab and bitbucket. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.

SELECT
gitAccount,
repos
FROM vercel.integrations.search_repo
WHERE teamId = '{{ teamId }}' -- required
AND query = '{{ query }}'
AND namespaceId = '{{ namespaceId }}'
AND provider = '{{ provider }}'
AND installationId = '{{ installationId }}'
AND host = '{{ host }}'
;