Sha256: 502308b766098dcc14779d0039101295b6d9bf0f3c3000cd18e8096619aa83d8

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Hosts
        # Provides Circle CI feature branch information.
        class CircleCI
          include Dependencies[:git]

          def call = git.commits "origin/#{branch_default}..#{branch_name}"

          private

          def branch_default = git.branch_default.value_or nil

          def branch_name = "origin/#{git.branch_name.value_or nil}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-lint-9.1.0 lib/git/lint/commits/hosts/circle_ci.rb
git-lint-9.0.0 lib/git/lint/commits/hosts/circle_ci.rb