@cloud-ru/ft-config-commit-message
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢
配置
说吧
cloud-ru-commit-message对象在您的软件包中。json.cloudrucommitmessagerc以 JSON 或 YML 为格式的文件cloud-ru-commit-message.config.js以JS格式编写的文件
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢 宇宙图。 。 。 .
选项
type CloudRuCommitMessageConfig = {
ticketPattern: string;
ignoreMessagePrefix: string;
forceConventional: boolean;
forceTicket: boolean;
};
const defaultCloudRuCommitMessageConfig: CloudRuCommitMessageConfig = {
ticketPattern: '([A-Z]+-\\d+)', //Ticket regexp, use default one, if you need cover Jira case
ignoreMessagePrefix: '&', // Use this prefix for skip running validation and formatting (but ignoreMessagePrefix itself would be removed)
forceConventional: false, // Commit creation will fail, if commit message format does not correspond to conventional commit
forceTicket: false, // Commit creation will fail, if commit message either branch name do not contain ticket id
};