- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - CommitLogEntry
 - Try it!
 
Fetches a Repository's history of commits. The Repository must not have a value for gitRemoteSettings.url.
HTTP request
GET https://dataform.googleapis.com/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. The repository's name. Authorization requires the following IAM permission on the specified resource  
  | 
              
Query parameters
| Parameters | |
|---|---|
pageSize | 
                
                   
 Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.  | 
              
pageToken | 
                
                   
 Optional. Page token received from a previous  When paginating, all other parameters provided to   | 
              
Request body
The request body must be empty.
Response body
repositories.fetchHistory response message.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "commits": [
    {
      object ( | 
                  
| Fields | |
|---|---|
commits[] | 
                    
                       
 A list of commit logs, ordered by 'git log' default order.  | 
                  
nextPageToken | 
                    
                       
 A token, which can be sent as   | 
                  
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/bigquery
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
dataform.repositories.fetchHistory
For more information, see the IAM documentation.
CommitLogEntry
Represents a single commit log.
| JSON representation | 
|---|
{
  "commitTime": string,
  "commitSha": string,
  "author": {
    object ( | 
              
| Fields | |
|---|---|
commitTime | 
                
                   
 Commit timestamp. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
commitSha | 
                
                   
 The commit SHA for this commit log entry.  | 
              
author | 
                
                   
 The commit author for this commit log entry.  | 
              
commitMessage | 
                
                   
 The commit message for this commit log entry.  |