summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/graphql/mutations/commit_ci_file.mutation.graphql
blob: 77a3cdf586c159dde3a88e7cf2b6d8740aaba2ef (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
28
29
30
31
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 }
      ]
    }
  ) {
    __typename
    commit {
      __typename
      id
      sha
    }
    commitPipelinePath
    errors
  }
}