Skip to content

FEATURE: AI生成git描述无法提交,修订 #8278

Description

@zmrbak

Version

Vben Admin V5

Description

AI生成的git描述会被阻止:

feat(playground): 新增创建/更新成功提示并优化错误信息解析 补充中英文创建成功和更新成功的国际化文案 在设备表单提交成功后显示相应成功提示 兼容响应体为字符串时的错误信息解析

目前可以提交的内容,需要去掉(playground)等字符。

建议:允许AI生成的描述

修改文件:
internal\lint-configs\commitlint-config\index.mjs

原代码:

const allowedScopes = [ ...packages.map((pkg) => pkg.packageJson.name), 'project', 'style', 'lint', 'ci', 'dev', 'deploy', 'other', ];

修改后的代码:

`
const allowedScopes = [
// 同时允许完整包名(如 @vben/playground)和去除 scope 前缀后的短名(如 playground)
...packages.flatMap((pkg) => {
const fullName = pkg.packageJson.name;
const shortName = fullName.includes('/')
? fullName.split('/').pop()
: fullName;
return shortName === fullName ? [fullName] : [fullName, shortName];
}),
'project',
'style',
'lint',
'ci',
'dev',
'deploy',
'other',
];

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions