From 7dd03496d09cde5a243a940ddcf4934c9d5be640 Mon Sep 17 00:00:00 2001 From: yiqingxiong Date: Tue, 3 Feb 2026 10:44:58 +0800 Subject: [PATCH] fix view error --- src/github/context.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/github/context.ts b/src/github/context.ts index 936e70e..277f40d 100644 --- a/src/github/context.ts +++ b/src/github/context.ts @@ -1,4 +1,5 @@ import * as github from "@actions/github"; +import { USE_GITEA_API } from "./api/config"; import type { IssuesEvent, IssuesAssignedEvent, @@ -133,7 +134,10 @@ export function parseGitHubContext(): GitHubContext { const context = github.context; const commonFields = { - runId: process.env.GITHUB_RUN_ID!, + // Gitea uses GITHUB_RUN_NUMBER for job URLs, while GitHub uses GITHUB_RUN_ID + runId: USE_GITEA_API + ? process.env.GITHUB_RUN_NUMBER! + : process.env.GITHUB_RUN_ID!, eventAction: context.payload.action, repository: { owner: context.repo.owner,