Sha256: c26135ce1370a61a869e2d39366d6b5afb6360d62c6c6e2c2eaa9c4bee615682

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Branches
      module Environments
        # Provides Circle CI build environment feature branch information.
        class CircleCI
          def initialize repository: GitPlus::Repository.new
            @repository = repository
          end

          def name
            "origin/#{repository.branch_name}"
          end

          def commits
            repository.commits "origin/master..#{name}"
          end

          private

          attr_reader :repository
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-lint-2.1.0 lib/git/lint/branches/environments/circle_ci.rb
git-lint-2.0.0 lib/git/lint/branches/environments/circle_ci.rb