Permalink
Browse files

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

  • Loading branch information...
1 parent d101d9a commit 69a4208286163dd4c4d388878341894375d343d5 @Flameeyes Flameeyes committed Jun 24, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 readscript.rb
View
@@ -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

0 comments on commit 69a4208

Please sign in to comment.