UNPKG

1.06 kBTypeScriptView Raw
1import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
2import { SourceLocation } from "@atomist/automation-client/lib/operations/common/SourceLocation";
3import { ReviewListener } from "../../../api/listener/ReviewListener";
4import { PushImpactResponse } from "../../../api/registration/PushImpactListenerRegistration";
5import { ReviewListenerRegistration } from "../../../api/registration/ReviewListenerRegistration";
6/**
7 * Strategy for deep linking to a source control system.
8 */
9export declare type DeepLink = (grr: RemoteRepoRef, sourceLocation: SourceLocation) => string;
10export interface SlackReviewRoutingParams {
11 pushReactionResponse?: PushImpactResponse;
12 deepLink: DeepLink;
13}
14/**
15 * Route reviews to Slack in linked channels
16 */
17export declare function slackReviewListener(opts?: Partial<SlackReviewRoutingParams>): ReviewListener;
18export declare function slackReviewListenerRegistration(opts?: Partial<SlackReviewRoutingParams>): ReviewListenerRegistration;
19//# sourceMappingURL=slackReviewListener.d.ts.map
\No newline at end of file