Skip to content

Commit

Permalink
Exclude dependabot from ChangeLog [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 28, 2023
1 parent 4374236 commit 606f754
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/lib/vcs.rb
Expand Up @@ -693,6 +693,9 @@ def format_changelog(path, arg, base_url = nil)
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
while s = r.gets("\ncommit ")
h, s = s.split(/^$/, 2)

next if /^Author: *dependabot\[bot\]/ =~ h

h.gsub!(/^(?:(?:Author|Commit)(?:Date)?|Date): /, ' \&')
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
fix = $1
Expand Down

0 comments on commit 606f754

Please sign in to comment.