添加获取单个 Issue 的功能,更新相关类型和环境变量

This commit is contained in:
xiongxiao
2026-03-12 23:47:19 +08:00
committed by cnb
parent 2e630b2da9
commit 525f0af8ba
5 changed files with 78 additions and 13 deletions

View File

@@ -5,12 +5,23 @@ export type IssueAssignee = {
nickname: string;
username: string;
};
export type IssueLabel = {
color: string;
description: string;
id: string;
name: string;
creator?: {
username: string;
nickname: string;
email: string;
is_npc: boolean;
};
applied_by?: {
username: string;
nickname: string;
email: string;
is_npc: boolean;
}
};
export type IssueState = 'open' | 'closed';

View File

@@ -128,7 +128,6 @@ export const useIssueEnv = () => {
const issueState = useKey("CNB_ISSUE_STATE");
const issueIsResolved = useKey("CNB_ISSUE_IS_RESOLVED");
const issueAssignees = useKey("CNB_ISSUE_ASSIGNEES");
const issueLabels = useKey("CNB_ISSUE_LABELS");
const issuePriority = useKey("CNB_ISSUE_PRIORITY");
return {
@@ -180,12 +179,6 @@ export const useIssueEnv = () => {
*/
issueAssignees,
issueAssigneesLabel: "Issue 处理人列表",
/**
* @key CNB_ISSUE_LABELS
* @description:Issue 标签列表, 多个以 , 分隔。
*/
issueLabels,
issueLabelsLabel: "Issue 标签列表, 多个以 , 分隔。",
/**
* @key CNB_ISSUE_PRIORITY
* @description:Issue 优先级