Sha256: 24a2441f213db06d0fef3792d09023a6085d3691b6e8a97fbf81b36d84f97616

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
git-lint-9.1.0 lib/git/lint/commits/hosts/git_hub_action.rb
git-lint-9.0.0 lib/git/lint/commits/hosts/git_hub_action.rb