UNPKG

1.01 kBTypeScriptView Raw
1import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
2import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
3import { Goal } from "../../api/goal/Goal";
4import { SdmGoalEvent } from "../../api/goal/SdmGoalEvent";
5import { CommitForSdmGoal, SdmGoalFields, SdmGoalRepo } from "../../typings/types";
6export declare function fetchGoalsFromPush(sdmGoal: SdmGoalEvent): SdmGoalEvent[];
7export declare function findSdmGoalOnCommit(ctx: HandlerContext, id: RemoteRepoRef, providerId: string, goal: Goal): Promise<SdmGoalEvent>;
8export declare function fetchCommitForSdmGoal(ctx: HandlerContext, goal: SdmGoalFields.Fragment & SdmGoalRepo.Fragment): Promise<CommitForSdmGoal.Commit>;
9export declare function fetchGoalsForCommit(ctx: HandlerContext, id: RemoteRepoRef, providerId: string, goalSetId?: string): Promise<SdmGoalEvent[]>;
10export declare function sumSdmGoalEvents(some: SdmGoalEvent[]): SdmGoalEvent[];
11//# sourceMappingURL=fetchGoalsOnCommit.d.ts.map
\No newline at end of file