diff --git i/git-branchless-submit/src/github.rs w/git-branchless-submit/src/github.rs index 2e8abbb..9973f5a 100644 --- i/git-branchless-submit/src/github.rs +++ w/git-branchless-submit/src/github.rs @@ -523,7 +523,6 @@ fn make_updated_pull_request_info( pull_request_infos: &HashMap, commit_oid: NonZeroOid, ) -> EyreExitOr { - let mut stack_index = None; let mut stack_pull_request_infos: IndexMap = Default::default(); @@ -612,9 +611,6 @@ fn make_updated_pull_request_info( None => continue, }; stack_pull_request_infos.insert(stack_commit_oid, pull_request_info); - if stack_commit_oid == commit_oid { - stack_index = Some(stack_pull_request_infos.len()); - } } let stack_size = stack_pull_request_infos.len(); @@ -625,17 +621,6 @@ fn make_updated_pull_request_info( "No pull requests in stack for commit" ); } - let stack_index = match stack_index { - Some(stack_index) => stack_index.to_string(), - None => { - warn!( - ?commit_oid, - ?stack_pull_request_infos, - "Could not determine index in stack for commit" - ); - "?".to_string() - } - }; let stack_list = { let mut result = String::new(); @@ -650,7 +635,7 @@ fn make_updated_pull_request_info( let commit = self.repo.find_commit_or_fail(commit_oid)?; let commit_summary = commit.get_summary()?; let commit_summary = String::from_utf8_lossy(&commit_summary).into_owned(); - let title = format!("[{stack_index}/{stack_size}] {commit_summary}"); + let title = commit_summary; let commit_message = commit.get_message_pretty(); let commit_message = String::from_utf8_lossy(&commit_message); let body = format!(