implemented 10-cli-commands.md: added CLI commands for branch name resolution, one-shot builds, failed build retries, and build status reports; includes tests for functionality and edge cases

This commit is contained in:
Michael Hoennig
2026-07-07 13:19:29 +02:00
parent a6a2c9de0b
commit 73221a8b8b
19 changed files with 943 additions and 2 deletions
@@ -217,6 +217,13 @@ class GitServiceTest : FunSpec() {
service.headCommit(fixture.work) shouldMatch Regex("[0-9a-f]{40}")
}
test("localHeadCommit returns the local branch head, or null for an unknown branch") {
val fixture = Fixture()
service.localHeadCommit("main", fixture.work) shouldBe service.headCommit(fixture.work)
service.localHeadCommit("no-such-branch", fixture.work).shouldBeNull()
}
test("originHeadCommit returns the origin branch head, or null for an unknown branch") {
val fixture = Fixture()