Refactor Manage Trigger to Single Workflow (#2577)
* Refactor Manage Trigger to Single Workflow
This commit is contained in:
parent
d122743129
commit
97256841bd
26 changed files with 1262 additions and 1077 deletions
|
@ -50,7 +50,7 @@ export type Local = {
|
|||
selectedRepository?: Repository;
|
||||
triggerAnalysis?: any;
|
||||
triggerOptions?: {
|
||||
[key: string]: boolean;
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -70,17 +70,18 @@ export type RobotAccount = {
|
|||
* A type representing a Git repository.
|
||||
*/
|
||||
export type Repository = {
|
||||
description: string;
|
||||
full_name: string;
|
||||
has_admin_permissions: boolean;
|
||||
last_updated: number;
|
||||
last_updated_datetime: Date;
|
||||
name: string;
|
||||
private: boolean;
|
||||
url: string;
|
||||
description?: string;
|
||||
full_name?: string;
|
||||
has_admin_permissions?: boolean;
|
||||
last_updated?: number;
|
||||
last_updated_datetime?: Date;
|
||||
private?: boolean;
|
||||
url?: string;
|
||||
kind?: string;
|
||||
namespace?: string;
|
||||
trust_enabled: boolean;
|
||||
}
|
||||
trust_enabled?: boolean;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
@ -100,8 +101,24 @@ export type Namespace = {
|
|||
* A type representing a trigger.
|
||||
*/
|
||||
export type Trigger = {
|
||||
id: number;
|
||||
service: any;
|
||||
id: string;
|
||||
service: string;
|
||||
is_active?: boolean;
|
||||
build_source?: string;
|
||||
can_invoke?: boolean;
|
||||
repository_url?: string;
|
||||
config?: any;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* A type representing a build trigger config.
|
||||
*/
|
||||
export type TriggerConfig = {
|
||||
build_source: string;
|
||||
dockerfile_path?: string;
|
||||
context?: string;
|
||||
branchtag_regex?: string;
|
||||
};
|
||||
|
||||
|
||||
|
|
Reference in a new issue