repositories_history
Creates, updates, deletes, gets or lists a repositories_history resource.
Overview
| Name | repositories_history |
| Type | Resource |
| Id | google.dataform.repositories_history |
Fields
The following fields are returned by SELECT queries:
- fetch_history
| Name | Datatype | Description |
|---|---|---|
commits | array | A list of commit logs, ordered by 'git log' default order. |
nextPageToken | string | A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
fetch_history | select | projectsId, locationsId, repositoriesId | pageSize, pageToken | Fetches a Repository's history of commits. The Repository must not have a value for git_remote_settings.url. |
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 |
|---|---|---|
locationsId | string | |
projectsId | string | |
repositoriesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- fetch_history
Fetches a Repository's history of commits. The Repository must not have a value for git_remote_settings.url.
SELECT
commits,
nextPageToken
FROM google.dataform.repositories_history
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;