scripts/generate_changelog.rb
# Parses individual commits by scanning the commit message for valid release notes
# and adding them to the list of entries. Entries include extra information about
# the author and whether it was an internal or external contribution so we can give
# kudos.
Parses individual commits by scanning the commit message for valid release notes
and adding them to the list of entries. Entries include extra information about
the author and whether it was an internal or external contribution so we can give
kudos.
Parses individual commits by scanning the commit message for valid release notes and adding them to the list of entries . Entries include extra information about the author and whether it was an internal or external contribution so we can give kudos .
def parse_commit(commit)
    regex = /!(#{labels.join('|')})(.+?)(?=(?:!(?:#{labels.join('|')})|\z))/m
    commit.commit.message.scan(regex) do |match|
      label, entry = match
      entries[label][:entries].push(
        body:     entry,
        author:   commit.commit.author.name || commit.author.login,
        profile:  commit.author.html_url,
        internal: org_members.include?(commit.author.login)
      )
    end
  end
def parse_commit ( commit ) regex = / !( #{ labels . join ( '|' ) } )(.+?)(?=(?:!(?: #{ labels . join ( '|' ) } )| \z )) /m commit . commit . message . scan ( regex ) do | match | label , entry = match entries [ label ] [ :entries ] . push ( body : entry , author : commit . commit . author . name || commit . author . login , profile : commit . author . html_url , internal : org_members . include? ( commit . author . login ) ) end end
Parses individual commits by scanning the commit message for valid release notes
and adding them to the list of entries.
Parses individual commits by scanning the commit message for valid release notes and adding them to the list of entries .
commit
<not_specific>