UNPKG

auto-plugin-release-info

Version:

Auto plugin that outputs info about the latest release

31 lines (30 loc) 952 B
import { Auto, IPlugin } from "@auto-it/core"; /** * Auto plugin that posts a PR comment with version information when a release is created */ export default class ReleaseInfo implements IPlugin { /** The name of the plugin */ name: string; /** Comment context */ private context; /** Optional notes for different release contexts */ private notes; constructor(options?: { context?: string; notes?: { canary?: string; next?: string; latest?: string; default?: string; }; }); /** * Get the appropriate message based on the release context * @param version The version string * @param releaseContext The Auto release context (canary, next, latest, etc.) * @returns Formatted markdown message for comments */ private getVersionMessage; /** Apply the plugin to the Auto instance */ apply(auto: Auto): void; }