Skip to content

Commit 366c926

Browse files
committed
more verbose bugzilla comment
1 parent ba4a144 commit 366c926

File tree

5 files changed

+58
-27
lines changed

5 files changed

+58
-27
lines changed

processes/SRCSRV_REQUEST_CREATE.BOSS_handle_SR.pdef

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,22 +310,24 @@ Ruote.process_definition :name => 'BOSS_handle_SR', :revision => '0.2' do
310310
define 'do_report' do
311311
sequence do
312312

313+
get_request :req_id => "${ev.id}", :field => "req"
313314
# Now for each package promoted,
314-
iterator :on_field => 'ev.actions', :to_field => 'action' do
315-
sequence do
316-
set 'f:package' => '${action.sourcepackage}'
315+
#iterator :on_field => 'ev.actions', :to_field => 'action' do
316+
# sequence do
317+
# set 'f:package' => '${action.sourcepackage}'
317318
#do_log :msg => 'Doing updates for ${package} after success'
318319
#getchangelog
319-
feed_revs :if => 'revs in ${stages}'
320-
end
321-
end
320+
# feed_revs :if => 'revs in ${stages}'
321+
# end
322+
#end
322323

323-
bugzilla :check_status => 'RESOLVED', :status => 'RELEASED', :if => 'bugzilla in ${stages}'
324+
#bugzilla :check_status => 'RESOLVED', :status => 'RELEASED', :if => 'bugzilla in ${stages}'
325+
bugzilla :if => 'bugzilla in ${stages}'
324326

325327
# Allow REVS to process the image
326-
_if :test => 'build_image in ${stages}' do
327-
revs_image :if => 'revs in ${stages}'
328-
end
328+
#_if :test => 'build_image in ${stages}' do
329+
# revs_image :if => 'revs in ${stages}'
330+
#end
329331

330332
end
331333
end

processes/promotion_reminder.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"ev" : { "namespace" : "obs" },
33
"project_pairs" : [
4-
{ "source" : "pj:oss",
5-
"target" : "pj:oss:testing"
4+
{ "source" : "",
5+
"target" : ""
66
}
77
],
88
"irc": {

templates/bugzilla-comment

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Accepting SR $f.ev.id by $f.author.realname which referenced this bug.
2+
The request introduced the following changes to the project :
3+
#for $action in $req.actions
4+
$action.type $action.target.project / $action.target.package
5+
#end for
6+
7+
More details below and at ${f.obsurl}/request/show/$f.ev.id
8+
9+
---
10+
System messages:
11+
#for $mesg in $f.msg
12+
$mesg
13+
#end for
14+
15+
Reviews:
16+
#for $review in $req.reviews
17+
#set $reviewer = "unknown"
18+
#set $who = ""
19+
#if $review.by_user
20+
#set $reviewer = $review.by_user
21+
#else if $review.by_group
22+
#set $reviewer = $review.by_group
23+
#if $review.who
24+
#set $reviewer = $reviewer + " (" + $review.who + ")"
25+
#end if
26+
#else if $review.by_project
27+
#set $reviewer = $review.by_project
28+
#if $review.who
29+
#set $reviewer = $reviewer + " (" + $review.who + ")"
30+
#end if
31+
#end if
32+
#if $review.state == "new"
33+
$review.state for $reviewer : $review.comment
34+
#else
35+
$review.state by $reviewer : $review.comment
36+
#end if
37+
#end for
38+
39+
Changes:
40+
#for $action in $req.actions
41+
$action.type: $action.source.project / $action.source.package -> $action.target.project / $action.target.package
42+
$action.diff
43+
#end for
44+

templates/submit_request_bz

Lines changed: 0 additions & 6 deletions
This file was deleted.

templates/submit_request_email

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)