Call Git cmd_main directly
This commit is contained in:
@@ -30,7 +30,11 @@ internal fun mergeSquashLevel(): Level = level(
|
||||
addCommit("Second commit", "file2")
|
||||
true
|
||||
},
|
||||
validator = repoPredicate { repo -> "merge-squash" in repo.maintenanceActions && repo.commits.isNotEmpty() },
|
||||
validator = repoPredicate { repo ->
|
||||
repo.commits.firstOrNull()?.message == "Merge long feature" &&
|
||||
repo.commits.firstOrNull()?.parentCount == 1 &&
|
||||
repo.files.any { it.name == "file3" && it.tracked }
|
||||
},
|
||||
testCases = listOf(
|
||||
levelTestCase("squash merge then commit", "git merge --squash long-feature-branch", "git commit -m \"Merge long feature\""),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user