Sha256: ae0389eee8af9e68e1fec5837efa48322ffaf372ba3bb7d7208140f14f5262e2

Contents?: true

Size: 605 Bytes

Versions: 34

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    module GitlabClient
      class CommitsClient < GitlabClient
        def create(branch_name, file_path, new_content, message)
          commit = handle_gitlab_client_exceptions do
            client.create_commit(project, branch_name, message, [
              { action: :update, file_path: file_path, content: new_content }
            ])
          end

          Runtime::Logger.debug("Created commit #{commit['id']} (#{commit['web_url']}) on #{branch_name}") if commit
          commit
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.28.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.24.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.23.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.22.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.21.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.21.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.20.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.20.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.19.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.19.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.18.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.17.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.15.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.14.2 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb