Socket
Socket
Sign inDemoInstall

@cloud-ru/ft-config-commit-message

Package Overview
Dependencies
25
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cloud-ru/ft-config-commit-message

Config for autoformatting commit messages, bundled in @cloud-ru/ft-config-husky


Version published
Maintainers
1
Install size
970 kB
Created

Readme

Source

@cloud-ru/ft-config-commit-message

Пакет уже включен в @cloud-ru/ft-config-husky

Отдельная установка в общем случае не требуется

Configuration

Есть несколько вариантов переопределения дефолтных правил:

  • cloud-ru-commit-message object in your package.json
  • .cloudrucommitmessagerc file in JSON or YML format
  • cloud-ru-commit-message.config.js file in JS format

Для дополнительной информации смотрите cosmiconfig.

Options

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
};

FAQs

Last updated on 23 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc