Как я могу добавить изменения моего проекта BLT в GIT - PullRequest
0 голосов
/ 21 апреля 2020

Я не могу зафиксировать свои изменения на 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.

1 Ответ

1 голос
/ 21 апреля 2020

Это из-за вашей конфигурации BLT по умолчанию.

Go в файл 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.

...