mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
refactor(run): drop the unused job of a run URL
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -33,7 +33,7 @@ func TestParseRefAcceptsNumbersQualifiedNumbersAndURLs(t *testing.T) {
|
||||
{raw: "https://gitea.com/alice/issues/issues/4", want: ref{Number: 4, Repo: "https://gitea.com/alice/issues"}},
|
||||
{raw: "https://gitea.com/alice/project/pulls/7", kind: issueRef, want: ref{Number: 7, Repo: "https://gitea.com/alice/project"}},
|
||||
{raw: "https://gitea.com/alice/project/actions/runs/34", kind: runRef, want: ref{Number: 34, Repo: "https://gitea.com/alice/project"}},
|
||||
{raw: "https://gitea.com/alice/project/actions/runs/34/jobs/2", kind: runRef, want: ref{Number: 34, Job: 2, Repo: "https://gitea.com/alice/project"}},
|
||||
{raw: "https://gitea.com/alice/project/actions/runs/34/jobs/2", kind: runRef, want: ref{Number: 34, Repo: "https://gitea.com/alice/project"}},
|
||||
{raw: "#34", kind: runRef, want: ref{Number: 34}},
|
||||
{raw: "0", err: `invalid issue "0": use a number, #number, OWNER/REPO#number or URL`},
|
||||
{raw: "#abc", kind: pullRef, err: `invalid pull request "#abc"`},
|
||||
|
||||
Reference in new issue
Block a user