UNPKG

@fancode/react-native-codepush-joystick

Version:
16 lines (15 loc) 861 B
import { GithubWorkflowRun, TriggerBuildParams, GithubWorkflowBuildInfo, GitHubActionsConfig, GithubActionsCICDProviderType, FindWorkflowStatus } from "../types"; export declare class GitHubActionsCICDProvider implements GithubActionsCICDProviderType { private config; constructor(config: GitHubActionsConfig); private makeRequest; triggerBuild(params: TriggerBuildParams): Promise<GithubWorkflowBuildInfo>; cancelBuild(buildId: string): Promise<void>; getWorkflowRuns(branchName: string): Promise<GithubWorkflowRun[]>; findWorkflowStatus(workflowRun: GithubWorkflowRun | null): { workflowStatus: FindWorkflowStatus; buildInfo: GithubWorkflowBuildInfo; } | null; private mapWorkflowStatus; } export declare function createGitHubActionsCICDProvider(config: GitHubActionsConfig): GithubActionsCICDProviderType;