@@ -161,7 +161,8 @@ fn build_status_comment(
161
161
match history. get ( user) {
162
162
Some ( statuses) => {
163
163
for status in statuses {
164
- let status_item = format ! ( " ~~{}~~ " , status. resolution) ;
164
+ let status_item =
165
+ format ! ( " [~~{}~~]({}) " , status. resolution, status. comment_id) ;
165
166
user_statuses. push_str ( & status_item) ;
166
167
}
167
168
}
@@ -170,7 +171,7 @@ fn build_status_comment(
170
171
171
172
// current status
172
173
let user_resolution = match status {
173
- Some ( status) => format ! ( "**{}**" , status. resolution) ,
174
+ Some ( status) => format ! ( "[ **{}**]({}) " , status. resolution, status . comment_id ) ,
174
175
_ => "" . to_string ( ) ,
175
176
} ;
176
177
@@ -190,13 +191,14 @@ mod tests {
190
191
191
192
factori ! ( UserStatus , {
192
193
default {
193
- comment_id = "the -comment-id" . to_string( ) ,
194
+ comment_id = "https://some -comment-id-for-merge.com " . to_string( ) ,
194
195
text = "this is my argument for making this decision" . to_string( ) ,
195
196
reversibility = Reversibility :: Reversible ,
196
197
resolution = Resolution :: Merge
197
198
}
198
199
199
200
mixin hold {
201
+ comment_id = "https://some-comment-id-for-hold.com" . to_string( ) ,
200
202
resolution = Resolution :: Hold
201
203
}
202
204
} ) ;
@@ -228,8 +230,8 @@ mod tests {
228
230
. expect ( "it shouldn't fail building the message" ) ;
229
231
let expected_comment = "| Team member | State |\n \
230
232
|-------------|-------|\n \
231
- | @Barbara | ~~hold~~ ~~merge~~ **merge** |\n \
232
- | @Niklaus | ~~merge~~ ~~hold~~ **merge** |"
233
+ | @Barbara | [ ~~hold~~](https://some-comment-id-for-hold.com) [ ~~merge~~](https://some-comment-id-for-merge.com) [ **merge**](https://some-comment-id-for-merge.com) |\n \
234
+ | @Niklaus | [ ~~merge~~](https://some-comment-id-for-merge.com) [ ~~hold~~](https://some-comment-id-for-hold.com) [ **merge**](https://some-comment-id-for-merge.com) |"
233
235
. to_string ( ) ;
234
236
235
237
assert_eq ! ( build_result, expected_comment) ;
@@ -267,8 +269,8 @@ mod tests {
267
269
. expect ( "it shouldn't fail building the message" ) ;
268
270
let expected_comment = "| Team member | State |\n \
269
271
|-------------|-------|\n \
270
- | @Barbara | ~~hold~~ ~~merge~~ **merge** |\n \
271
- | @Niklaus | ~~merge~~ ~~hold~~ **merge** |\n \
272
+ | @Barbara | [ ~~hold~~](https://some-comment-id-for-hold.com) [ ~~merge~~](https://some-comment-id-for-merge.com) [ **merge**](https://some-comment-id-for-merge.com) |\n \
273
+ | @Niklaus | [ ~~merge~~](https://some-comment-id-for-merge.com) [ ~~hold~~](https://some-comment-id-for-hold.com) [ **merge**](https://some-comment-id-for-merge.com) |\n \
272
274
| @Tom | |"
273
275
. to_string ( ) ;
274
276
@@ -330,8 +332,8 @@ mod tests {
330
332
. expect ( "it shouldn't fail building the message" ) ;
331
333
let expected_comment = "| Team member | State |\n \
332
334
|-------------|-------|\n \
333
- | @Barbara | **merge** |\n \
334
- | @Niklaus | **merge** |\
335
+ | @Barbara | [ **merge**](https://some-comment-id-for-merge.com) |\n \
336
+ | @Niklaus | [ **merge**](https://some-comment-id-for-merge.com) |\
335
337
"
336
338
. to_string ( ) ;
337
339
0 commit comments