@atomist/sdm
Version:
Atomist Software Delivery Machine SDK
11 lines • 1.01 kB
TypeScript
import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
import { Goal } from "../../api/goal/Goal";
import { SdmGoalEvent } from "../../api/goal/SdmGoalEvent";
import { CommitForSdmGoal, SdmGoalFields, SdmGoalRepo } from "../../typings/types";
export declare function fetchGoalsFromPush(sdmGoal: SdmGoalEvent): SdmGoalEvent[];
export declare function findSdmGoalOnCommit(ctx: HandlerContext, id: RemoteRepoRef, providerId: string, goal: Goal): Promise<SdmGoalEvent>;
export declare function fetchCommitForSdmGoal(ctx: HandlerContext, goal: SdmGoalFields.Fragment & SdmGoalRepo.Fragment): Promise<CommitForSdmGoal.Commit>;
export declare function fetchGoalsForCommit(ctx: HandlerContext, id: RemoteRepoRef, providerId: string, goalSetId?: string): Promise<SdmGoalEvent[]>;
export declare function sumSdmGoalEvents(some: SdmGoalEvent[]): SdmGoalEvent[];
//# sourceMappingURL=fetchGoalsOnCommit.d.ts.map