mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
import type { TPermissionType } from 'actions-util';
|
|
|
|
export { Context } from '@actions/github/lib/context';
|
|
|
|
export type TEmoji = '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'rocket' | 'eyes';
|
|
|
|
export type TLockReasons = 'off-topic' | 'too heated' | 'resolved' | 'spam' | undefined;
|
|
|
|
export type TIssueState = 'open' | 'closed';
|
|
|
|
export type TUpdateMode = 'append' | 'replace';
|
|
|
|
export type TUserPermission = TPermissionType;
|
|
|
|
export type TCloseReason = 'completed' | 'not_planned';
|
|
|
|
export type TOutInfo = {
|
|
auth: string;
|
|
id?: number;
|
|
number?: number;
|
|
title?: string;
|
|
body?: string;
|
|
state?: TIssueState;
|
|
created: string;
|
|
updated: string;
|
|
};
|
|
|
|
export type TOutList = TOutInfo[];
|
|
|
|
export type TAction =
|
|
// [ Base Begin ]
|
|
| 'add-assignees'
|
|
| 'add-labels'
|
|
| 'close-issue'
|
|
| 'create-comment'
|
|
| 'create-issue'
|
|
| 'create-label'
|
|
| 'delete-comment'
|
|
| 'lock-issue'
|
|
| 'open-issue'
|
|
| 'remove-assignees'
|
|
| 'remove-labels'
|
|
| 'set-labels'
|
|
| 'unlock-issue'
|
|
| 'update-comment'
|
|
| 'update-issue'
|
|
| 'toggle-labels'
|
|
// [ Base End ]
|
|
// ^_^ ========== ^_^
|
|
// [ Advanced Begin ]
|
|
| 'check-inactive'
|
|
| 'check-issue'
|
|
| 'close-issues'
|
|
| 'find-comments'
|
|
| 'find-issues'
|
|
| 'get-issue'
|
|
| 'lock-issues'
|
|
| 'mark-assignees'
|
|
| 'mark-duplicate'
|
|
| 'welcome';
|
|
//// [ Advanced End ]
|