@@ -161,7 +161,8 @@ fn build_status_comment(
161161 match history. get ( user) {
162162 Some ( statuses) => {
163163 for status in statuses {
164- let status_item = format ! ( " ~~{}~~ " , status. resolution) ;
164+ let status_item =
165+ format ! ( " [~~{}~~]({}) " , status. resolution, status. comment_id) ;
165166 user_statuses. push_str ( & status_item) ;
166167 }
167168 }
@@ -170,7 +171,7 @@ fn build_status_comment(
170171
171172 // current status
172173 let user_resolution = match status {
173- Some ( status) => format ! ( "**{}**" , status. resolution) ,
174+ Some ( status) => format ! ( "[ **{}**]({}) " , status. resolution, status . comment_id ) ,
174175 _ => "" . to_string ( ) ,
175176 } ;
176177
@@ -190,13 +191,14 @@ mod tests {
190191
191192 factori ! ( UserStatus , {
192193 default {
193- comment_id = "the -comment-id" . to_string( ) ,
194+ comment_id = "https://some -comment-id-for-merge.com " . to_string( ) ,
194195 text = "this is my argument for making this decision" . to_string( ) ,
195196 reversibility = Reversibility :: Reversible ,
196197 resolution = Resolution :: Merge
197198 }
198199
199200 mixin hold {
201+ comment_id = "https://some-comment-id-for-hold.com" . to_string( ) ,
200202 resolution = Resolution :: Hold
201203 }
202204 } ) ;
@@ -228,8 +230,8 @@ mod tests {
228230 . expect ( "it shouldn't fail building the message" ) ;
229231 let expected_comment = "| Team member | State |\n \
230232 |-------------|-------|\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) |"
233235 . to_string ( ) ;
234236
235237 assert_eq ! ( build_result, expected_comment) ;
@@ -267,8 +269,8 @@ mod tests {
267269 . expect ( "it shouldn't fail building the message" ) ;
268270 let expected_comment = "| Team member | State |\n \
269271 |-------------|-------|\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 \
272274 | @Tom | |"
273275 . to_string ( ) ;
274276
@@ -330,8 +332,8 @@ mod tests {
330332 . expect ( "it shouldn't fail building the message" ) ;
331333 let expected_comment = "| Team member | State |\n \
332334 |-------------|-------|\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) |\
335337 "
336338 . to_string ( ) ;
337339
0 commit comments