How to use the danger-plugin-toolbox.commonPrDescription function in danger-plugin-toolbox

To help you get started, we’ve selected a few danger-plugin-toolbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()

danger-plugin-toolbox

Danger Plugin Toolbox is a Danger JS plugin containing a set of common validations and utilities, build to make it easy to start using Danger JS.

MIT
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis