Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some more data mined from the log (bug assignee and cc'ed).

  • Loading branch information...
commit 69a4208286163dd4c4d388878341894375d343d5 1 parent d101d9a
@Flameeyes Flameeyes authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 readscript.rb
View
9 readscript.rb
@@ -57,6 +57,8 @@
matches = 0
pkg_failed = false
test_failed = false
+ bug_assignee = 'bug-wranglers@gentoo.org'
+ bug_cc = ''
next unless log.file?
@@ -88,6 +90,9 @@
elsif line =~ /(^ \* ERROR: .* failed|detected file collision)/
pkg_failed = true
match = true
+ elsif line =~ /^ * Maintainer: ([a-z0-9.@_-+]+)(?: ([a-z0-9.@_-+]+))?$/
+ bug_assignee = $1
+ bug_cc = $2
end
if match
@@ -120,7 +125,9 @@
:matches => matches,
:pkg_failed => pkg_failed,
:test_failed => test_failed,
- :public_url => html_log.public_url);
+ :public_url => html_log.public_url,
+ :bug_assignee => bug_assignee,
+ :bug_cc => bug_cc);
end
end
ensure
Please sign in to comment.
Something went wrong with that request. Please try again.