search_repo
Creates, updates, deletes, gets or lists a search_repo
resource.
Overview
Name | search_repo |
Type | Resource |
Id | vercel.integrations.search_repo |
Fields
The following fields are returned by SELECT
queries:
- git_namespaces
Name | Datatype | Description |
---|---|---|
gitAccount | object | |
repos | array |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
git_namespaces | select | teamId | query , namespaceId , provider , installationId , host | 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. |
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.
Name | Datatype | Description |
---|---|---|
teamId | string | The Team identifier or slug to perform the request on behalf of. |
host | string | The custom Git host if using a custom Git provider, like GitHub Enterprise Server |
installationId | string | |
namespaceId | string | |
provider |
| |
query | string |
SELECT
examples
- git_namespaces
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 }}'
;