dangerjs-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

Dangerjs-wrapper

Apply cultural rules during your CI process.

semantic-release

Plugin to Apply cultural rules during your CI process.

Usage

  • Install:
npm i -D dangerjs-wrapper
  • Create a dangerfile.js
  • Create the config file following this interface:
interface DangerConfig {
  giphyApiKey: string
  minReviewersRequired: number
  ticketLinkRegExp: RegExp
  changedFilesLimit: number
  testFilesRegExp?: RegExp
  docFilesRegExp?: RegExp
}
  • Call the function checkPullRequest passing the config as a param
const { checkPullRequest } = require('dangerjs-wrapper')
const dangerConfig = {
  giphyApiKey: 'irrelevant',
  docFilesRegExp: /./g,
  changedFilesLimit: 4,
  minReviewersRequired: 2,
  ticketLinkRegExp: /https:\/\/dev.example.com/g,
}

checkPullRequest(dangerConfig)

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Readme

Keywords

Package Sidebar

Install

npm i dangerjs-wrapper

Weekly Downloads

97

Version

1.1.8

License

MIT

Unpacked Size

21.8 kB

Total Files

28

Last publish

Collaborators

  • cressie176
  • ulisesgascon
  • feliun
  • guidesmiths_bot
  • w3dani