Skip to content

Commit 90f1ab4

Browse files
committed
fix texts
1 parent 8768737 commit 90f1ab4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() {
5858
.arg("-c")
5959
.arg(format!("echo \"DIFF_FILES={:?}\" >> $GITHUB_OUTPUT", filtered_files))
6060
.output()
61-
.expect("Failed to execute DIFF command");
61+
.expect("Failed to execute DIFF_FILES command");
6262

6363
Command::new("sh")
6464
.arg("-c")
@@ -106,11 +106,11 @@ fn get_changed_files() -> Vec<String> {
106106
.arg("-c")
107107
.arg(format!("git fetch origin {}", base_ref_env))
108108
.output()
109-
.expect("Failed to execute DIFF_COUNT command");
109+
.expect("Failed to execute fetch branch command");
110110

111111
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");
114114

115115
let diff = repository.diff_tree_to_tree(
116116
Some(&base_commit.tree().expect("Failed to get base tree")),

0 commit comments

Comments
 (0)