feat(pulls): support branch-validated stack reordering

Assisted-by: Codet:GPT-5-Codex
This commit is contained in:
Lunny Xiao
2026-09-24 23:31:32 -07:00
parent f28a5e696a
commit b06d902687
5 changed files with 103 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package stack
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func TestStackReorderRequiresCompleteOrder(t *testing.T) {
cmd := CmdStackReorder
err := cmd.Run(context.Background(), []string{"reorder", "5", "2"})
assert.ErrorContains(t, err, "at least two pull numbers")
}