Sha256: bc4ae4fc473bc25047a9ba8df33a2099a6d4522e2462c7f8a9d7207e416714ad
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require "kiriban_getter" using KiribanGetter module Danger # PullRequest kiriban checker. # # @example check kiriban # # if kiriban.kiriban? # message("this pr number #{kiriban.number} is KIRIBAN!") # end # # @see noblejasper/danger-kiriban # @tags kiriban class DangerKiriban < Plugin # Is Pull Request ID kiriban? # # return [Boolean] def kiriban? number.kiriban? end # Get Pull Request ID # # return [Integer] def number git.pr_json[:id].to_i end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-kiriban-0.1.0 | lib/danger_plugin.rb |