@@ -10,7 +10,7 @@ use crate::{
1010 condition:: Action ,
1111 error:: Error ,
1212 repo:: { pr_issue_url, resources:: RepoResources } ,
13- utils:: push_empty_line ,
13+ utils:: empty_or_start_new_line ,
1414} ;
1515
1616pub fn commit_check_message (
@@ -75,7 +75,7 @@ pub fn commit_check_message_detail(
7575 . as_ref( )
7676 . map( |u| format!( "\n {}" , markdown:: escape( u. as_str( ) ) ) )
7777 . unwrap_or_default( ) ,
78- notify = push_empty_line ( & settings. notify. notify_markdown( ) ) ,
78+ notify = empty_or_start_new_line ( & settings. notify. notify_markdown( ) ) ,
7979 new = markdown_list( result. new. iter( ) ) ,
8080 all = markdown_list( result. all. iter( ) )
8181 )
@@ -98,7 +98,7 @@ pub async fn pr_issue_merged_message(
9898 Ok ( format ! (
9999 "{pretty_id} merged as `{commit}`{notify}" ,
100100 pretty_id = pr_issue_id_pretty( resources, id) . await ?,
101- notify = push_empty_line ( & settings. notify. notify_markdown( ) ) ,
101+ notify = empty_or_start_new_line ( & settings. notify. notify_markdown( ) ) ,
102102 ) )
103103}
104104
@@ -110,7 +110,7 @@ pub async fn pr_issue_closed_message(
110110 Ok ( format ! (
111111 "{pretty_id} has been closed{notify}" ,
112112 pretty_id = pr_issue_id_pretty( resources, id) . await ?,
113- notify = push_empty_line ( & settings. notify. notify_markdown( ) ) ,
113+ notify = empty_or_start_new_line ( & settings. notify. notify_markdown( ) ) ,
114114 ) )
115115}
116116
@@ -140,7 +140,7 @@ pub fn branch_check_message(
140140" ,
141141 repo = markdown:: escape( repo) ,
142142 branch = markdown:: escape( branch) ,
143- notify = push_empty_line ( & settings. notify. notify_markdown( ) ) ,
143+ notify = empty_or_start_new_line ( & settings. notify. notify_markdown( ) ) ,
144144 )
145145}
146146
0 commit comments