fix: seed issue create from --template, edit and delete inline review comments, explain workflow run refs (follow gh)

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 18:58:28 +02:00
1 parent 0db9ed463e
commit 2a221d0a81
9 files changed
+122 -21

No files matched your search

+8
View File
@@ -109,6 +109,14 @@ func TestWorkflowRunChecksInputsBeforeDispatching(t *testing.T) {
"workflow nightly.yaml is disabled; enable it with: tea workflow enable nightly.yaml -R alice/project")
}
func TestWorkflowRunExplainsWorkflowsComeFromTheDefaultBranch(t *testing.T) {
server, requests := actionsAPI(t, map[string]string{"GET actions/workflows": workflowsFixture})
deps, _, _ := actionsDeps(t, server.URL, false)
err := Execute(context.Background(), deps, []string{"workflow", "run", "branch-only", "-R", "alice/project", "--ref", "feature"})
require.EqualError(t, err, `workflow "branch-only" not found in alice/project; workflows are listed from the default branch and must exist there, even with --ref; see tea workflow list -R alice/project`)
require.Equal(t, []string{"GET actions/workflows"}, *requests)
}
// dispatchingPrompter answers workflow inputs: selections with their first choice, confirmations
// with yes, and text by title.
type dispatchingPrompter struct {