this repo has no description
at master 2.1 kB view raw
1diff --git i/git-branchless-submit/src/github.rs w/git-branchless-submit/src/github.rs 2index 2e8abbb..9973f5a 100644 3--- i/git-branchless-submit/src/github.rs 4+++ w/git-branchless-submit/src/github.rs 5@@ -523,7 +523,6 @@ fn make_updated_pull_request_info( 6 pull_request_infos: &HashMap<String, client::PullRequestInfo>, 7 commit_oid: NonZeroOid, 8 ) -> EyreExitOr<client::UpdatePullRequestArgs> { 9- let mut stack_index = None; 10 let mut stack_pull_request_infos: IndexMap<NonZeroOid, &client::PullRequestInfo> = 11 Default::default(); 12 13@@ -612,9 +611,6 @@ fn make_updated_pull_request_info( 14 None => continue, 15 }; 16 stack_pull_request_infos.insert(stack_commit_oid, pull_request_info); 17- if stack_commit_oid == commit_oid { 18- stack_index = Some(stack_pull_request_infos.len()); 19- } 20 } 21 22 let stack_size = stack_pull_request_infos.len(); 23@@ -625,17 +621,6 @@ fn make_updated_pull_request_info( 24 "No pull requests in stack for commit" 25 ); 26 } 27- let stack_index = match stack_index { 28- Some(stack_index) => stack_index.to_string(), 29- None => { 30- warn!( 31- ?commit_oid, 32- ?stack_pull_request_infos, 33- "Could not determine index in stack for commit" 34- ); 35- "?".to_string() 36- } 37- }; 38 39 let stack_list = { 40 let mut result = String::new(); 41@@ -650,7 +635,7 @@ fn make_updated_pull_request_info( 42 let commit = self.repo.find_commit_or_fail(commit_oid)?; 43 let commit_summary = commit.get_summary()?; 44 let commit_summary = String::from_utf8_lossy(&commit_summary).into_owned(); 45- let title = format!("[{stack_index}/{stack_size}] {commit_summary}"); 46+ let title = commit_summary; 47 let commit_message = commit.get_message_pretty(); 48 let commit_message = String::from_utf8_lossy(&commit_message); 49 let body = format!(