diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-07 20:29:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-07 20:48:00 +0900 |
commit | e667bb70cfae9a890d52526c3f884cb586236ad3 () | |
tree | cd4e0cafed6fcf0e0b2c218e2b06d9b0da6360ad /tool/lib/vcs.rb | |
parent | 3ca007d82e6a9b28cb848b941185df1533ada457 (diff) |
Add `skip` log-fix command to skip that commit totally [ci skip]
-rw-r--r-- | tool/lib/vcs.rb | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -522,10 +522,12 @@ class VCS cmd << date cmd.concat(arg) proc do |w| - w.print "-*- coding: utf-8 -*-\n\n" - w.print "base-url = #{base_url}\n\n" if base_url cmd_pipe(env, cmd, chdir: @srcdir) do |r| - while s = r.gets("\ncommit ") h, s = s.split(/^$/, 2) next if /^Author: *dependabot\[bot\]/ =~ h @@ -533,6 +535,7 @@ class VCS h.gsub!(/^(?:(?:Author|Commit)(?:Date)?|Date): /, ' \&') if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '') fix = $1 s = s.lines fix.each_line do |x| next unless x.sub!(/^(\s+)(?:(\d+)|\$(?:-\d+)?)/, '') @@ -598,7 +601,7 @@ class VCS s.gsub!(/ +\n/, "\n") s.sub!(/^Notes:/, ' \&') - w.print h, s end end end |