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.1.9 payload.rb
compare_linker-1.1.8 payload.rb
compare_linker-1.1.7 payload.rb
compare_linker-1.1.6 payload.rb
compare_linker-1.1.5 payload.rb
compare_linker-1.1.4 payload.rb
compare_linker-1.1.3 payload.rb
compare_linker-1.1.2 payload.rb
compare_linker-1.1.1 payload.rb