Files
opencommit/src/commands
Sukharev 4181c0b20d Refactoring and cleaning for v3 (#244)
* chore(README.md): update setup instructions for OpenCommit as a GitHub Action
fix(commit.ts): check if OCO_MESSAGE_TEMPLATE_PLACEHOLDER exists before replacing it in the commit message template
The README.md file has been updated to reflect the changes in the setup instructions for using OpenCommit as a GitHub Action. The new instructions provide a file template for the GitHub Action workflow and include the latest version of the OpenCommit GitHub Action.

In the commit.ts file, a fix has been made to check if the OCO_MESSAGE_TEMPLATE_PLACEHOLDER exists before replacing it in the commit message template. This ensures that the replacement is only performed when the placeholder is present, preventing any potential errors.
2023-09-03 14:59:37 +08:00
..

@commitlint Module for opencommit

  1. Load commitlint configuration within tree.
  2. Generate a commit with commitlint prompt:
    • Will not run if hash is the same.
    • Infer a prompt for each commitlint rule.
    • Ask OpenAI to generate consistency with embedded commitlint rules.
    • Store configuration close to commitlint configuration.
  3. Replace conventional-commit prompt with commitlint prompt.