From 9bbb28731af833ae2b62e68c290182c58d1d6be9 Mon Sep 17 00:00:00 2001 From: atlas Date: Mon, 19 Oct 2026 19:51:54 +0200 Subject: [PATCH] merge_base_of no longer takes open_pulls's doc comment --- swarm-controller/src/forge.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarm-controller/src/forge.rs b/swarm-controller/src/forge.rs index bfdb3988..45e8c46c 100644 --- a/swarm-controller/src/forge.rs +++ b/swarm-controller/src/forge.rs @@ -105,8 +105,6 @@ pub struct OpenPull { pub head_sha: Option, } -/// `pulls` as the dropdown's rows, newest (highest number) first. A PR -/// without a usable number cannot be named, so it is left out. /// The merge base of a PR's head and base branch, read off its commits (the /// forge lists them from the current head and base): the one parent that is /// not itself a PR commit. `None` when the PR has no commits or its commits @@ -130,6 +128,8 @@ fn merge_base_of(commits: &[forgejo_api::structs::Commit]) -> Option { } } +/// `pulls` as the dropdown's rows, newest (highest number) first. A PR +/// without a usable number cannot be named, so it is left out. fn open_pulls(pulls: Vec) -> Vec { let mut rows: Vec = pulls .into_iter()