Sha256: c96357c2376b29320ff610c707f5f175db4be74b7a9066adc963c73bb8785101

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Hosts
        # Provides Circle CI feature branch information.
        class CircleCI
          include Git::Lint::Import[: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

3 entries across 3 versions & 1 rubygems

Version Path
git-lint-7.2.0 lib/git/lint/commits/hosts/circle_ci.rb
git-lint-7.1.0 lib/git/lint/commits/hosts/circle_ci.rb
git-lint-7.0.0 lib/git/lint/commits/hosts/circle_ci.rb