summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/graphql/mutations/commit_ci_file.mutation.graphql
blob: 11bca42fd699a51498154b29cd204745dbf0cf17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
mutation commitCIFileMutation(
  $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: UPDATE, filePath: $filePath, lastCommitId: $lastCommitId, content: $content }
      ]
    }
  ) {
    commit {
      id
    }
    errors
  }
}