Apply cultural rules during your CI process.
Plugin to Apply cultural rules during your CI process.
- 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)
See the GitHub release history.
See CONTRIBUTING.md.