UNPKG

@auto-canary/microsoft-teams

Version:

Microsoft Teams plugin for auto

29 lines 1.36 kB
import { RestEndpointMethodTypes } from "@octokit/rest"; import { Auto, IPlugin, InteractiveInit } from "@auto-it/core"; import * as t from "io-ts"; declare const pluginOptions: t.PartialC<{ /** URL of the microsoft teams to post to */ url: t.StringC; /** Who to bother when posting to the channel */ atTarget: t.StringC; /** Allow users to opt into having prereleases posted to slack */ publishPreRelease: t.BooleanC; }>; export declare type IMicrosoftTeamsPluginOptions = t.TypeOf<typeof pluginOptions>; /** Post your release notes to Microsof during `auto release` */ export default class MicrosoftTeamsPlugin implements IPlugin { /** The name of the plugin */ name: string; /** The options of the plugin */ readonly options: IMicrosoftTeamsPluginOptions; /** Initialize the plugin with it's options */ constructor(options?: IMicrosoftTeamsPluginOptions | string); /** Custom initialization for this plugin */ init(initializer: InteractiveInit): void; /** Tap into auto plugin points. */ apply(auto: Auto): void; /** Post the release notes to microsoft teams */ postToMicrosoftTeams(auto: Auto, newVersion: string, releaseNotes: string, releases: Array<RestEndpointMethodTypes["repos"]["createRelease"]["response"]>): Promise<void>; } export {}; //# sourceMappingURL=index.d.ts.map