mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
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:
9 files changed
+122
-21
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user