UNPKG

@auto-canary/released

Version:

Released plugin for auto. Comments with version + extra

30 lines 1.26 kB
import { Auto, IPlugin } from '@auto-it/core'; interface IReleasedLabelPluginOptions { /** Message to use when posting on issues and pull requests */ message: string; /** The label to add to issues and pull requests */ label: string; /** The label to add to issues and pull requests that are in a prerelease */ prereleaseLabel: string; /** Whether to lock the issue once the pull request has been released */ lockIssues: boolean; } /** Comment on merged pull requests and issues with the new version */ export default class ReleasedLabelPlugin implements IPlugin { /** The name of the plugin */ name: string; /** The options of the plugin */ readonly options: IReleasedLabelPluginOptions; /** Initialize the plugin with it's options */ constructor(options?: Partial<IReleasedLabelPluginOptions>); /** Tap into auto plugin points. */ apply(auto: Auto): void; /** Add the release label + other stuff to a commit */ private addReleased; /** Add the templated comment to the pr and attach the "released" label */ private addCommentAndLabel; /** Create a comment that fits the context (pr of issue) */ private createReleasedComment; } export {}; //# sourceMappingURL=index.d.ts.map