Call Git cmd_main directly
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user