29 lines
545 B
GraphQL
29 lines
545 B
GraphQL
mutation commitCIFile(
|
|
$action: CommitActionMode!
|
|
$projectPath: ID!
|
|
$branch: String!
|
|
$startBranch: String
|
|
$message: String!
|
|
$filePath: String!
|
|
$lastCommitId: String!
|
|
$content: String
|
|
) {
|
|
commitCreate(
|
|
input: {
|
|
projectPath: $projectPath
|
|
branch: $branch
|
|
startBranch: $startBranch
|
|
message: $message
|
|
actions: [
|
|
{ action: $action, filePath: $filePath, lastCommitId: $lastCommitId, content: $content }
|
|
]
|
|
}
|
|
) {
|
|
commit {
|
|
sha
|
|
}
|
|
commitPipelinePath
|
|
errors
|
|
}
|
|
}
|