@@ -127,7 +127,10 @@ func init() {
127
127
hostname , _ = os .Hostname ()
128
128
}
129
129
130
- func (m * Message ) buildFooter (start time.Time , commitSHA , labelFilter string , showDebugInfo bool ) string {
130
+ func (m * Message ) buildFooter (
131
+ start time.Time , commitSHA , labelFilter string , showDebugInfo bool ,
132
+ appsChecked , totalChecked int ,
133
+ ) string {
131
134
if ! showDebugInfo {
132
135
return fmt .Sprintf ("<small> _Done. CommitSHA: %s_ <small>\n " , commitSHA )
133
136
}
@@ -138,11 +141,15 @@ func (m *Message) buildFooter(start time.Time, commitSHA, labelFilter string, sh
138
141
}
139
142
duration := time .Since (start )
140
143
141
- return fmt .Sprintf ("<small> _Done: Pod: %s, Dur: %v, SHA: %s%s_ <small>\n " , hostname , duration , pkg .GitCommit , envStr )
144
+ return fmt .Sprintf ("<small> _Done: Pod: %s, Dur: %v, SHA: %s%s_ <small>, Apps Checked: %d, Total Checks: %d\n " ,
145
+ hostname , duration .Round (time .Second ), pkg .GitCommit , envStr , appsChecked , totalChecked )
142
146
}
143
147
144
148
// BuildComment iterates the map of all apps in this message, building a final comment from their current state
145
- func (m * Message ) BuildComment (ctx context.Context , start time.Time , commitSHA , labelFilter string , showDebugInfo bool , identifier string ) string {
149
+ func (m * Message ) BuildComment (
150
+ ctx context.Context , start time.Time , commitSHA , labelFilter string , showDebugInfo bool , identifier string ,
151
+ appsChecked , totalChecked int ,
152
+ ) string {
146
153
_ , span := tracer .Start (ctx , "buildComment" )
147
154
defer span .End ()
148
155
@@ -203,7 +210,7 @@ func (m *Message) BuildComment(ctx context.Context, start time.Time, commitSHA,
203
210
sb .WriteString ("No changes" )
204
211
}
205
212
206
- footer := m .buildFooter (start , commitSHA , labelFilter , showDebugInfo )
213
+ footer := m .buildFooter (start , commitSHA , labelFilter , showDebugInfo , appsChecked , totalChecked )
207
214
sb .WriteString (fmt .Sprintf ("\n \n %s" , footer ))
208
215
209
216
return sb .String ()
0 commit comments