Sha256: e1077be7f90ca722d4af5b3943fc439738e627599758297eba3d602acc0c3a5a

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Systems
        # Provides GitHub Action build environment 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

12 entries across 12 versions & 1 rubygems

Version Path
git-lint-6.2.1 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-6.2.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-6.1.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-6.0.2 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-6.0.1 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-6.0.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.3.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.2.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.1.2 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.1.1 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.1.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-5.0.0 lib/git/lint/commits/systems/git_hub_action.rb