Sha256: b29612dfd1b0fbffe2a18b41e2bfef06735d29b9a7f37e3a4e5168f8db65292c

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Hosts
        # Provides GitHub Action feature branch information.
        class GitHubAction
          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

11 entries across 11 versions & 1 rubygems

Version Path
git-lint-8.8.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.7.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.6.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.5.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.4.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.3.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.2.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.1.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-8.0.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-7.5.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-7.3.0 lib/git/lint/commits/hosts/git_hub_action.rb