如何将我的 BLT 项目更改添加到 GIT

How can I add my BLT project changes to GIT

我无法提交对 GIT 的更改,我在提交更改时收到以下消息。

> tests:twig:lint:files
Linting twig files...
All Twig files contain valid syntax.
> tests:yaml:lint:files
Linting YAML files...
> tests:composer:validate
Validating composer.json and composer.lock...
[ExecStack] composer validate --no-check-all --ansi
[ExecStack] Running composer validate --no-check-all --ansi in 
/Users/784187/Projects/takeda/takeda-poc
./composer.json is valid
[ExecStack] Done in 0.796s
Your local code has passed git pre-commit validation.
Executing .git/hooks/commit-msg...
Validating commit message syntax...
[error]  Invalid commit message! 
Commit messages must conform to the regex /(^BLT-[0-9]+(: )[^ ].{15,}\.)|(Merge branch (.)+)/
The commit message should include your project prefix, followed by a hyphen and ticket number, followed by a colon and a space, fifteen characters or more describing the commit, and end with a period.
Example: BLT-123: Update module configuration.

这是因为您的 BLT 默认配置。

转到文件 blt/blt.yml 并将 prefix 值替换为您的项目代码。

project:
  prefix: BLT

project:
  prefix: YOUR-PROJECT-CODE

如果将 prefix 值设置为 PRJ,则提交消息格式将为

PRJ-[ticket number]: [message with minimum 15 letter]

示例: PRJ-123: Added Initial source code with configuration.