Sha256: edf3cb5b61e1342ddd6e17a89637d9fd18c78951236539ce24589d2f6fcfeffc

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    module GitlabClient
      class BranchesClient < GitlabClient
        def create(branch_name, ref)
          branch = handle_gitlab_client_exceptions do
            client.create_branch(project, branch_name, ref)
          end

          Runtime::Logger.debug("Created branch #{branch['name']} (#{branch['web_url']})")
          branch
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.14.1 lib/gitlab_quality/test_tooling/gitlab_client/branches_client.rb
gitlab_quality-test_tooling-1.14.0 lib/gitlab_quality/test_tooling/gitlab_client/branches_client.rb
gitlab_quality-test_tooling-1.13.0 lib/gitlab_quality/test_tooling/gitlab_client/branches_client.rb
gitlab_quality-test_tooling-1.12.0 lib/gitlab_quality/test_tooling/gitlab_client/branches_client.rb