@fancode/react-native-codepush-joystick
Version:
A flexible CodePush Joystick for React Native apps
16 lines (15 loc) • 861 B
TypeScript
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;