1.1.8 • Published 3 years ago

dangerjs-wrapper v1.1.8

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

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.

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.25

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.11

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago