UNPKG

@jwpkg/gitversion

Version:

Gitversion is a complete customizable git-based release management system

26 lines (25 loc) 817 B
import { GitCommit } from './git'; import { IGitPlatform } from './plugin-manager'; export declare enum ConventionalCommitFooterType { note = 0, ref = 1 } export interface ConventionalCommitFooter { type: ConventionalCommitFooterType; name: string; value: string; } export interface ConventionalCommit { hash: string; shortHash: string; type: string; message: string; scope?: string; breaking: boolean; breakingReason?: string; body: string; footers: ConventionalCommitFooter[]; } export declare function parseConventionalCommits(commits: GitCommit[], platform: IGitPlatform): ConventionalCommit[]; export declare function parseConventionalCommit(commit: GitCommit): ConventionalCommit | undefined; export declare function isFooterStart(line: string): boolean;