fix: address verified review findings (pulls-1)

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 17:39:24 +02:00
1 parent 58f0fc4bf9
commit 401650b489
15 files changed
+202 -8

No files matched your search

+7
View File
@@ -64,3 +64,10 @@ func TestConflictHintsFollowTheReason(t *testing.T) {
err := &ConflictError{Reason: ReasonArchived, Scope: "alice/old", Hint: "unarchive it with: tea repo edit alice/old --archived=false"}
require.EqualError(t, err, "alice/old is archived (read-only); unarchive it with: tea repo edit alice/old --archived=false")
}
func TestClassifyNamesAMissingBranchNotThePullRequest(t *testing.T) {
for _, message := range []string{`ref "develp" does not exist`, `new base 'develp' not exist`} {
err := Classify(&transport.APIError{Status: http.StatusNotFound, Message: message}, "pull request", "#3", "alice/x")
require.EqualError(t, err, `branch "develp" not found in alice/x`)
}
}