UNPKG

buddy-bot

Version:

Automated & optimized dependency updates for JavaScript & TypeScript projects. Like Renovate & Dependabot.

22 lines 1.4 kB
import type { BuddyBotConfig, PullRequest, UpdateGroup } from '../types'; export declare class PullRequestGenerator { private releaseNotesFetcher: any; private verbose: any; private readonly config?: BuddyBotConfig | undefined; constructor(config?: BuddyBotConfig | undefined); private log(message: string, data?: any): void; generatePullRequests(groups: UpdateGroup[]): Promise<PullRequest[]>; generateLabels(group: UpdateGroup): string[]; generateTitle(group: UpdateGroup): string; generateBody(group: UpdateGroup): Promise<string>; private getRepositoryName(repositoryUrl: string): string; private getRepositorySourceUrl(repositoryUrl: string, packageName: string, ref?: string): string; private getComposerSourceUrl(repositoryUrl: string, packageName: string): string; private getConstraintStyleChange(currentVersion: string, newVersion: string): string; private getComposerRedirectSourceUrl(repositoryUrl: string, packageName: string): string; private cleanReleaseBody(body: string): string; private sanitizeMentions(text: string): string; generateCustomTemplate(group: UpdateGroup, template: string, variables?: Record<string, string>): string; private formatVersionChange(currentVersion: string, newVersion: string): string; private getVersionChangeDescription(currentVersion: string, newVersion: string, updateType: 'major' | 'minor' | 'patch'): string; }