fix view error
This commit is contained in:
parent
99eb1fd72f
commit
7dd03496d0
@ -1,4 +1,5 @@
|
|||||||
import * as github from "@actions/github";
|
import * as github from "@actions/github";
|
||||||
|
import { USE_GITEA_API } from "./api/config";
|
||||||
import type {
|
import type {
|
||||||
IssuesEvent,
|
IssuesEvent,
|
||||||
IssuesAssignedEvent,
|
IssuesAssignedEvent,
|
||||||
@ -133,7 +134,10 @@ export function parseGitHubContext(): GitHubContext {
|
|||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
const commonFields = {
|
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,
|
eventAction: context.payload.action,
|
||||||
repository: {
|
repository: {
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user