tangled
alpha
login
or
join now
davidpdrsn.tngl.sh
/
jj-sync-prs
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
2
pipelines
add newline between prs
davidpdrsn.tngl.sh
2 months ago
29e1609a
e104d51e
+7
-1
1 changed file
expand all
collapse all
unified
split
src
main.rs
+7
-1
src/main.rs
···
94
94
&repo_info,
95
95
&octocrab,
96
96
&mut pulls,
97
97
+
true,
97
98
)
98
99
.await
99
100
.context("failed to sync prs")?;
···
300
301
repo_info: &RepoInfo,
301
302
octocrab: &Octocrab,
302
303
pulls: &mut Vec<PullRequest>,
304
304
+
is_first: bool,
303
305
) -> color_eyre::Result<()> {
306
306
+
if !is_first {
307
307
+
println!();
308
308
+
}
309
309
+
304
310
find_or_create_pr(target, branch, pulls, octocrab, repo_info)
305
311
.await
306
312
.with_context(|| format!("failed to find or create pr from {branch} into {target}"))?;
307
313
308
314
for child in graph.iter_edges_from(branch) {
309
315
Box::pin(find_or_create_prs(
310
310
-
child, branch, graph, repo_info, octocrab, pulls,
316
316
+
child, branch, graph, repo_info, octocrab, pulls, false,
311
317
))
312
318
.await
313
319
.with_context(|| format!("failed to find or create pr from {branch} into {target}"))?;