Sha256: ae671ec7f80b07f534d1e45a07142ebb9e0b8ff0719b6e9c2133a834eda3a1d9

Contents?: true

Size: 507 Bytes

Versions: 12

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Systems
        # Provides Circle CI build environment 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

12 entries across 12 versions & 1 rubygems

Version Path
git-lint-6.2.1 lib/git/lint/commits/systems/circle_ci.rb
git-lint-6.2.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-6.1.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-6.0.2 lib/git/lint/commits/systems/circle_ci.rb
git-lint-6.0.1 lib/git/lint/commits/systems/circle_ci.rb
git-lint-6.0.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.3.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.2.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.1.2 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.1.1 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.1.0 lib/git/lint/commits/systems/circle_ci.rb
git-lint-5.0.0 lib/git/lint/commits/systems/circle_ci.rb