Call Git cmd_main directly

This commit is contained in:
Joe Tretter
2026-06-24 13:16:35 -05:00
parent a9d7b0cfc0
commit 0554c736e4
26 changed files with 1141 additions and 661 deletions

View File

@@ -30,7 +30,17 @@ internal fun rebaseOntoLevel(): Level = level(
addCommit("Add `Install` header in readme", "README.md")
true
},
validator = repoPredicate { repo -> repo.headBranch == "readme-update" && "rebase-onto" in repo.maintenanceActions },
validator = repoPredicate { repo ->
repo.headBranch == "readme-update" &&
repo.files.find { it.name == "authors.md" }?.content == "https://github.com/janis-vitols\n" &&
repo.commits.map { it.message }.containsAll(
listOf(
"Add app name in readme",
"Add `About` header in readme",
"Add `Install` header in readme",
),
)
},
testCases = listOf(
levelTestCase("rebase onto explicit branch", "git rebase --onto master wrong_branch readme-update"),
levelTestCase("rebase onto current branch", "git rebase --onto master wrong_branch"),