refactor(run): drop the unused job of a run URL

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:29:37 +02:00
1 parent 57cbded4a0
commit c22e8550da
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -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"`},