class Git::Lint::Branches::Environments::GitHubAction
Provides GitHub Action build environment feature branch information.
Public Class Methods
new(repository: GitPlus::Repository.new)
click to toggle source
# File lib/git/lint/branches/environments/git_hub_action.rb, line 9 def initialize repository: GitPlus::Repository.new @repository = repository end
Public Instance Methods
commits(= repository.commits("origin/
click to toggle source
# File lib/git/lint/branches/environments/git_hub_action.rb, line 15 def commits = repository.commits("origin/#{repository.branch_default}..#{name}") private attr_reader :repository end
name(= "origin/
click to toggle source
# File lib/git/lint/branches/environments/git_hub_action.rb, line 13 def name = "origin/#{repository.branch_name}" def commits = repository.commits("origin/#{repository.branch_default}..#{name}") private attr_reader :repository end end