pub fn get_closest_merge_commit(
git_dir: Option<&Path>,
config: &GitConfig<'_>,
target_paths: &[PathBuf],
) -> Result<String, String>
Expand description
Searches for the nearest merge commit in the repository that also exists upstream.
If it fails to find the upstream remote, it then looks for the most recent commit made by the merge bot by matching the author’s email address with the merge bot’s email.