Sha256: a85902dd3f82a5ec0a507a8882c384a63b095adf7b6e27f0756ae995f82d270d
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 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/#{repository.branch_default}..#{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.2.1 | lib/git/lint/branches/environments/circle_ci.rb |
git-lint-2.2.0 | lib/git/lint/branches/environments/circle_ci.rb |