danger-plugin-kirinus
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

danger-plugin-kirinus

Set of Danger rules used to check Kirinus Digital PRs.

Usage

Install:

yarn add danger-plugin-kirinus --dev

At a glance:

// dangerfile.js
import kirinus from 'danger-plugin-kirinus';

(async function dangerReport() {
  const commitlintConfig = {
    severity: 'warn',
  };
  await kirinus();
})();

To override some default parameters:

// dangerfile.js
import configLernaScopes from '@commitlint/config-lerna-scopes';
import kirinus from 'danger-plugin-kirinus';

(async function dangerReport() {
  await kirinus({
    branchSize: {
      maxCommits: 20,
      maxFiles: 200,
      severity: 'fail',
    },
    conventional: {
      rules: configLernaScopes.rules,
      severity: 'warn',
    },
    prLint: {
      severity: 'message',
      scoped: false,
    },
    jira: {
      severity: 'disabled',
    },
  });
})();

Parameters

Config Name Default Description
branchSize maxCommits 10 maximum number of commits
branchSize maxLines 2000 maximum number of line additions and deletions
branchSize maxFiles 100 maximum number of changed files
branchSize severity warn danger event type
conventional rules @commitlint/config-conventional rules conventional commit rules to lint
conventional severity fail danger event type
prLint minBodyLength warn minimum number of characters in the PR body
prLint severity fail danger event type
jira severity warn danger event type

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Package Sidebar

Install

npm i danger-plugin-kirinus

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

75.4 MB

Total Files

869

Last publish

Collaborators

  • darioblanco