UNPKG

@atomist/sdm-pack-changelog

Version:

Extension Pack for an Atomist SDM to manage changelogs

29 lines 1.04 kB
import { HandlerResult } from "@atomist/automation-client"; import { CommandHandlerRegistration } from "@atomist/sdm"; import * as GitHubApi from "@octokit/rest"; export declare const ChangelogLabels: string[]; export declare class ChangelogParameters { owner: string; repo: string; apiUrl: string; githubToken: string; } /** * CommandHandler to add required changelog labels to a given repo. * @returns {HandleCommand<ChangelogParameters>} */ export declare const AddChangelogLabels: CommandHandlerRegistration<ChangelogParameters>; /** * Information needed to check and create a label. */ interface UpsertChangelogLabelsInfo { /** @octokit/rest API to use to query and create label. */ api: GitHubApi; /** Name of repository in which to create label */ repo: string; /** Owner of repository in which to create label */ owner: string; } export declare function upsertChangelogLabels(info: UpsertChangelogLabelsInfo): Promise<HandlerResult>; export {}; //# sourceMappingURL=changelogLabels.d.ts.map