Module: Magnum::Payload::MessageParser

Included in:
Base
Defined in:
lib/magnum/payload/message_parser.rb

Constant Summary collapse

REGEX_SKIP =
/\[(ci skip|ci-skip|skip ci|skip-ci)\]/i

Instance Method Summary collapse

Instance Method Details

#skip_message?Boolean

Returns:

  • (Boolean)

5
6
7
# File 'lib/magnum/payload/message_parser.rb', line 5

def skip_message?
  message.to_s.split("\n").first =~ REGEX_SKIP ? true : false
end