Skip to content

Commit 9045d9a

Browse files
committed
note that specified commits should be from the master branch
While trying to get cbr working I ran into the ominous "Expected author Brian Anderson to be bors for beb9a0dfc52ebda4f8db4e5d439e08e4f3a43a39" error. The problem seems to be that all commits are expected to be found in the master branch, so simply feeding in a git tag commit or something of a beta/stable branch does not work. Tweak error message to reflect that. cc #27
1 parent 176217a commit 9045d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn get_commits_between(first_commit: &str, last_commit: &str) -> Result<Vec<
8383
let assert_by_bors = |c: &Git2Commit<'_>| -> Result<(), Error> {
8484
match c.author().name() {
8585
Some("bors") => Ok(()),
86-
Some(author) => bail!("Expected author {} to be bors for {}", author, c.id()),
86+
Some(author) => bail!("Expected author {} to be bors for {}.\n Make sure specified commits are on the master branch!", author, c.id()),
8787
None => bail!("No author for {}", c.id()),
8888
}
8989
};

0 commit comments

Comments
 (0)