Class: Verto::DSL::UpdateChangelog::WithCommitMessages

Inherits:
Object
  • Object
show all
Includes:
FilteredBy
Defined in:
lib/verto/dsl/update_changelog/with_commit_messages.rb

Instance Method Summary collapse

Methods included from FilteredBy

included

Instance Method Details

#call(message_pattern = /.+/) ⇒ Object



10
11
12
13
14
# File 'lib/verto/dsl/update_changelog/with_commit_messages.rb', line 10

def call(message_pattern = /.+/)
  executor.run(
    "git log --no-merges --pretty=format:%s #{commit_range}"
  ).output.split("\n").map(&:strip).select { |message| message_pattern.match? message }
end