File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() {
58
58
. arg ( "-c" )
59
59
. arg ( format ! ( "echo \" DIFF_FILES={:?}\" >> $GITHUB_OUTPUT" , filtered_files) )
60
60
. output ( )
61
- . expect ( "Failed to execute DIFF command" ) ;
61
+ . expect ( "Failed to execute DIFF_FILES command" ) ;
62
62
63
63
Command :: new ( "sh" )
64
64
. arg ( "-c" )
@@ -106,11 +106,11 @@ fn get_changed_files() -> Vec<String> {
106
106
. arg ( "-c" )
107
107
. arg ( format ! ( "git fetch origin {}" , base_ref_env) )
108
108
. output ( )
109
- . expect ( "Failed to execute DIFF_COUNT command" ) ;
109
+ . expect ( "Failed to execute fetch branch command" ) ;
110
110
111
111
let base_ref_string = format ! ( "refs/remotes/origin/{}" , base_ref_env) ;
112
- let base_ref = repository. find_reference ( & base_ref_string) . expect ( "Failed to find main branch" ) ;
113
- let base_commit = base_ref. peel_to_commit ( ) . expect ( "Failed to peel main branch to commit" ) ;
112
+ let base_ref = repository. find_reference ( & base_ref_string) . expect ( "Failed to find default branch" ) ;
113
+ let base_commit = base_ref. peel_to_commit ( ) . expect ( "Failed to peel default branch to commit" ) ;
114
114
115
115
let diff = repository. diff_tree_to_tree (
116
116
Some ( & base_commit. tree ( ) . expect ( "Failed to get base tree" ) ) ,
You can’t perform that action at this time.
0 commit comments