Sha256: 87a1b299013a04a67c4cfa8cd2f9fcd40bc9c1fed9fdb45dab104f91c67851be

Contents?: true

Size: 484 Bytes

Versions: 29

Compression:

Stored size: 484 Bytes

Contents

require_relative "lib/compare_linker"
require_relative "lib/compare_linker/webhook_payload"

payload = CompareLinker::WebhookPayload.new(ENV["payload"])
exit if payload.action != "opened"

compare_linker = CompareLinker.new(payload.repo_full_name, payload.pr_number)
compare_linker.formatter = CompareLinker::Formatter::Markdown.new
compare_links = compare_linker.make_compare_links.join("\n")
puts compare_linker.add_comment(payload.repo_full_name, payload.pr_number, compare_links)

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
compare_linker-1.4.8 payload.rb
compare_linker-1.4.7 payload.rb
compare_linker-1.4.6 payload.rb
compare_linker-1.4.5 payload.rb
compare_linker-1.4.4 payload.rb
compare_linker-1.4.3 payload.rb
compare_linker-1.4.2 payload.rb
compare_linker-1.4.1 payload.rb
compare_linker-1.4.0 payload.rb
compare_linker-1.3.8 payload.rb
compare_linker-1.3.7 payload.rb
compare_linker-1.3.6 payload.rb
compare_linker-1.3.5 payload.rb
compare_linker-1.3.4 payload.rb
compare_linker-1.3.3 payload.rb
compare_linker-1.3.2 payload.rb
compare_linker-1.3.1 payload.rb
compare_linker-1.3.0 payload.rb
compare_linker-1.2.1 payload.rb
compare_linker-1.2.0 payload.rb