Sha256: 446401501e08f20ab45b7198130c000e0b4badbdab9f68e9103f9c0270b5596f
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Branches module Environments # Provides GitHub Action build environment feature branch information. class GitHubAction 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/git_hub_action.rb |
git-lint-2.2.0 | lib/git/lint/branches/environments/git_hub_action.rb |