Query
query GitRepository {
gitRepository {
connection {
mode
installationId
repoId
repoFullName
}
state
gitUri
hasDeployKey
pendingInstallRequests {
userUid
githubLogin
requestedAt
}
}
}Response
{
"data": {
"gitRepository": {
"connection": {
"mode": "SSH_DEPLOY_KEY",
"installationId": "string",
"repoId": "string",
"repoFullName": "string"
},
"state": "CONNECTED",
"gitUri": "string",
"hasDeployKey": true,
"pendingInstallRequests": [
{
"userUid": "string",
"githubLogin": "string",
"requestedAt": "string"
}
]
}
}
}gitRepository
How the API key’s workspace reaches its git repository
QUERY
gitRepository: GQLWorkspaceGitConnection!Returns
connection
state
gitUri
String
hasDeployKey
Boolean!
A deploy-key clone exists to fall back to
pendingInstallRequests
Query
query GitRepository {
gitRepository {
connection {
mode
installationId
repoId
repoFullName
}
state
gitUri
hasDeployKey
pendingInstallRequests {
userUid
githubLogin
requestedAt
}
}
}Response
{
"data": {
"gitRepository": {
"connection": {
"mode": "SSH_DEPLOY_KEY",
"installationId": "string",
"repoId": "string",
"repoFullName": "string"
},
"state": "CONNECTED",
"gitUri": "string",
"hasDeployKey": true,
"pendingInstallRequests": [
{
"userUid": "string",
"githubLogin": "string",
"requestedAt": "string"
}
]
}
}
}