Sha256: f09cb9a0722312d9d08ff48080e819de7ea25a85dc0ffa18e7d9bf85ee03b31e

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Commits
      module Systems
        # Provides GitHub Action build environment feature branch information.
        class GitHubAction
          def initialize container: Container
            @container = container
          end

          def call = repository.commits("origin/#{repository.branch_default}..#{name}")

          private

          attr_reader :container

          def name = "origin/#{repository.branch_name}"

          def repository = container[__method__]
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git-lint-3.3.2 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.3.1 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.3.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.2.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.1.0 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.0.2 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.0.1 lib/git/lint/commits/systems/git_hub_action.rb
git-lint-3.0.0 lib/git/lint/commits/systems/git_hub_action.rb