Files
rcz/src/types.ts
2024-02-25 13:50:11 +02:00

42 lines
1.1 KiB
TypeScript

/*
Copyright 2024 Resultium LLC
This file is part of RCZ.
RCZ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
RCZ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with RCZ. If not, see <https://www.gnu.org/licenses/>.
*/
import { DefaultLogFields, ListLogLine } from "simple-git";
export interface Config {
types?: Array<Type>;
scopes?: Array<string>;
autoSignCommits?: boolean;
autoSignReleases?: boolean;
}
export interface Type {
label: string;
value: string;
hint: string;
}
export interface CommitStack {
version: string;
breaking: Array<DefaultLogFields & ListLogLine>;
features: Array<DefaultLogFields & ListLogLine>;
fixes: Array<DefaultLogFields & ListLogLine>;
miscellaneous: Array<DefaultLogFields & ListLogLine>;
}