mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11: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
@@ -169,6 +169,10 @@ Inputs are checked against the inputs that the workflow declares: unknown inputs
|
||||
required inputs and values that a choice or boolean input does not accept are refused. In a
|
||||
terminal, tea asks for missing required inputs, or for every input when none is given.
|
||||
|
||||
The workflow is looked up among those the server lists from the default branch, so it must exist
|
||||
there; --ref only selects the branch or tag whose version of it runs, as in gh. List them with
|
||||
tea workflow list.
|
||||
|
||||
Without --ref, the workflow runs on the checked-out branch, which must be on the server, or on
|
||||
the default branch when the repository does not come from the working directory.`,
|
||||
Example: `# run a workflow on the default or current branch
|
||||
@@ -196,6 +200,10 @@ $ tea workflow run nightly --follow`,
|
||||
}
|
||||
service := services.Actions{Client: t.client, Repository: t.Repo}
|
||||
workflow, err := service.FindWorkflow(cmd.Context(), args[0])
|
||||
if notFound, ok := errors.AsType[*services.NotFoundError](err); ok && notFound.Kind == "workflow" {
|
||||
// Like gh, the workflow comes from the server's list, so --ref cannot add one.
|
||||
return fmt.Errorf("%w; workflows are listed from the default branch and must exist there, even with --ref; see tea workflow list%s", err, a.suggestedRepo(t))
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user