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-2.5.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-2.4.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-2.3.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-2.2.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-2.1.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-2.0.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.39.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.38.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.38.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.37.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.36.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.35.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.34.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.33.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.32.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.32.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.31.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.30.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.29.1 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb
gitlab_quality-test_tooling-1.29.0 lib/gitlab_quality/test_tooling/gitlab_client/commits_client.rb