@jameslnewell/buildkite-pipelines
Version:
Generate Buildkite pipelines from code.
49 lines (48 loc) • 1.33 kB
TypeScript
import { PipelineNotification } from '../../schema';
export interface NotifyBuilder {
notify(notify: PipelineNotification): this;
addNotification(notification: PipelineNotification): this;
}
export declare class NotificationHelper {
#private;
/**
* @see https://buildkite.com/docs/pipelines/notifications
*/
addNotification(notification: PipelineNotification): void;
build(): {
notify: ("github_check" | "github_commit_status" | {
email?: string;
if?: string;
} | {
basecamp_campfire?: string;
if?: string;
} | {
slack?: string | {
channels?: string[];
message?: string;
[k: string]: unknown;
};
if?: string;
} | {
webhook?: string;
if?: string;
} | {
pagerduty_change_event?: string;
if?: string;
} | {
github_commit_status?: {
context?: string;
[k: string]: unknown;
};
if?: string;
} | {
github_check?: {
context?: string;
[k: string]: unknown;
};
if?: string;
})[];
} | {
notify?: undefined;
};
}