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()