workspaces_git_ahead_behind
Creates, updates, deletes, gets or lists a workspaces_git_ahead_behind
resource.
Overview
Name | workspaces_git_ahead_behind |
Type | Resource |
Id | google.dataform.workspaces_git_ahead_behind |
Fields
The following fields are returned by SELECT
queries:
- fetch_git_ahead_behind
Successful response
Name | Datatype | Description |
---|---|---|
commitsAhead | integer (int32) | The number of commits in the remote branch that are not in the workspace. |
commitsBehind | integer (int32) | The number of commits in the workspace that are not in the remote branch. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
fetch_git_ahead_behind | select | projectsId , locationsId , repositoriesId , workspacesId | remoteBranch | Fetches Git ahead/behind against a remote branch. |
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 | |
workspacesId | string | |
remoteBranch | string |
SELECT
examples
- fetch_git_ahead_behind
Fetches Git ahead/behind against a remote branch.
SELECT
commitsAhead,
commitsBehind
FROM google.dataform.workspaces_git_ahead_behind
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND workspacesId = '{{ workspacesId }}' -- required
AND remoteBranch = '{{ remoteBranch }}';