repos
Creates, updates, deletes, gets or lists a repos resource.
Overview
| Name | repos |
| Type | Resource |
| Id | vercel.integrations.repos |
Fields
The following fields are returned by SELECT queries:
- search
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
default_branch | string | (wire: defaultBranch) |
namespace | string | |
owner | object | |
owner_type | string | (team, user) (wire: ownerType) |
private | boolean | (false, true) |
provider | string | (cursor-origin) |
slug | string | |
updated_at | number | (wire: updatedAt) |
url | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
search | select | query, namespace_id, provider, installation_id, host, team_id, slug | 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 |
|---|---|---|
host | string | The custom Git host if using a custom Git provider, like GitHub Enterprise Server |
installation_id | string | (wire: installationId) |
namespace_id | | (wire: namespaceId) |
provider | | |
query | string | |
slug | string | The Team slug to perform the request on behalf of. |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
SELECT examples
- search
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
id,
name,
default_branch,
namespace,
owner,
owner_type,
private,
provider,
slug,
updated_at,
url
FROM vercel.integrations.repos
WHERE query = '{{ query }}'
AND namespace_id = '{{ namespace_id }}'
AND provider = '{{ provider }}'
AND installation_id = '{{ installation_id }}'
AND host = '{{ host }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;