ci: 使用 type 导入 PullRequest 和 BuildStatus 类型

This commit is contained in:
时瑾 2025-12-29 03:01:21 +08:00
parent 95f4a4d37e
commit 05b38825c0
No known key found for this signature in database
GPG Key ID: 023F70A1B8F8C196
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@
*/
import { readFileSync } from 'node:fs';
import { GitHubAPI, getEnv, getRepository, setOutput, PullRequest } from './lib/github.ts';
import { GitHubAPI, getEnv, getRepository, setOutput } from './lib/github.ts';
import type { PullRequest } from './lib/github.ts';
// ============== 类型定义 ==============

View File

@ -13,7 +13,8 @@
*/
import { GitHubAPI, getEnv, getRepository } from './lib/github.ts';
import { generateResultComment, COMMENT_MARKER, BuildTarget, BuildStatus } from './lib/comment.ts';
import { generateResultComment, COMMENT_MARKER } from './lib/comment.ts';
import type { BuildTarget, BuildStatus } from './lib/comment.ts';
function parseStatus (value: string | undefined): BuildStatus {
if (value === 'success' || value === 'failure' || value === 'cancelled') {