summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/graphql/mutations/commit_ci_file.mutation.graphql
blob: 3b2daa45a188b5c5969ac750cd5e621624ca3e99 (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
27
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
    }
    errors
  }
}