Class: Ossy::CLI::Github::Tagger

Inherits:
Commands::Core show all
Defined in:
lib/ossy/cli/github/tagger.rb

Instance Method Summary collapse

Instance Method Details

#call(repo:, tag:) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/ossy/cli/github/tagger.rb', line 17

def call(repo:, tag:)
  result = client.tagger(repo: repo, tag: tag)

  return unless result

  tagger = result[:tagger]

  if tagger["email"].include?("users.noreply.github.com") || result[:verified].equal?(true)
    puts tagger["name"]
  end
end