Skip to main content

repositories_history

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

Overview

Namerepositories_history
TypeResource
Idgoogle.dataform.repositories_history

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
commitsarrayA list of commit logs, ordered by 'git log' default order.
nextPageTokenstringA 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:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_historyselectprojectsId, locationsId, repositoriesIdpageSize, pageTokenFetches 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
repositoriesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

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 }}';