添加获取单个 Issue 的功能,更新相关类型和环境变量
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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 优先级
|
||||
|
||||
Reference in New Issue
Block a user