Mutation
mutation ConnectGitRepository($input: ConnectGitRepositoryInput!) {
connectGitRepository(input: $input) {
gitRepository {
mode
state
provider
uri
dbtProjectDir
isVerified
}
job {
id
kind
status
failure {
code
reason
}
result {
__typename
... on DeployBoltSchedulesResult {
__typename
}
}
createdAt
}
}
}Variables
{
"input": {
"connection": {}
}
}Response
{
"data": {
"connectGitRepository": {
"gitRepository": {
"mode": "SSH_DEPLOY_KEY",
"state": "NOT_CONNECTED",
"provider": "GITHUB",
"uri": "string",
"dbtProjectDir": "string",
"isVerified": true
},
"job": {
"id": "string",
"kind": "DEPLOY_BOLT_SCHEDULES",
"status": "QUEUED",
"failure": {
"code": "UNAUTHENTICATED",
"reason": "string"
},
"result": {
"__typename": "DeployBoltSchedulesResult"
},
"createdAt": "value"
}
}
}
}connectGitRepository
Connects the workspace’s git repository. With the deploy key and validate: true the clone, the dbt_project.yml check, the production sync and the editor restart run in a job; the App connections finish before it returns. Needs git:write.
MUTATION
connectGitRepository(input: ConnectGitRepositoryInput!): ConnectGitRepositoryPayload!Arguments
input
required
The repository.
Returns
gitRepository
The workspace's repository now.
job
The job cloning the repository, when the deploy key connects it with validate: true; poll it with adminJob. Its result is a GitRepositoryConnectResult. Null when nothing needed cloning.
Mutation
mutation ConnectGitRepository($input: ConnectGitRepositoryInput!) {
connectGitRepository(input: $input) {
gitRepository {
mode
state
provider
uri
dbtProjectDir
isVerified
}
job {
id
kind
status
failure {
code
reason
}
result {
__typename
... on DeployBoltSchedulesResult {
__typename
}
}
createdAt
}
}
}Variables
{
"input": {
"connection": {}
}
}Response
{
"data": {
"connectGitRepository": {
"gitRepository": {
"mode": "SSH_DEPLOY_KEY",
"state": "NOT_CONNECTED",
"provider": "GITHUB",
"uri": "string",
"dbtProjectDir": "string",
"isVerified": true
},
"job": {
"id": "string",
"kind": "DEPLOY_BOLT_SCHEDULES",
"status": "QUEUED",
"failure": {
"code": "UNAUTHENTICATED",
"reason": "string"
},
"result": {
"__typename": "DeployBoltSchedulesResult"
},
"createdAt": "value"
}
}
}
}