Minified package

This commit is contained in:
Auto Rebase
2024-12-28 00:48:01 +01:00
committed by Skydust
parent 7e6bef38bf
commit 757bdca40c
4 changed files with 71 additions and 20513 deletions

16
app.ts
View File

@@ -187,8 +187,8 @@ const rebaseBranch = async ({
"rebase",
onBranch
]).catch(async error => {
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.ERROR);
writeConsole(error, LogLevel.ERROR)
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.WARNING);
writeConsole(error, LogLevel.WARNING)
await runGitCommand([
"rebase",
"--abort"
@@ -236,14 +236,18 @@ const main = async (): Promise<void> => {
writeConsole(branches);
// Step 2: Detect dependencies
writeConsole("Determining dependencies...");
const dependencies = await buildRebaseDependencyGraph(branches);
writeConsole("Dependencies");
writeConsole(dependencies);
writeConsole(dependencies, LogLevel.DEBUG);
// Step 3: Determine rebase order
const order = rebaseOrder(dependencies);
writeConsole("Rebase order");
writeConsole(order);
if (order.length === 0) {
writeConsole("Nothing to rebase");
} else {
writeConsole("Rebase order");
writeConsole(order);
}
// Step 4: Rebase branches
for (const rebaseAction of order) {