2.3.0 • Published 2 years ago

@arquivei/danger v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Arquivei - Danger

Danger checks for all of arquivei projects. Feel free to use these conventions. :-)

Usage:

This usage is exemplified for bitbucket pipelines, for more information about others pipelines access: DangerJS.

With yarn:

  • Install @arquivei/danger
yarn add @arquivei/danger --dev
  • Create dangerfile.js on root of project
import arquiveiDanger from '@arquivei/danger'

arquiveiDanger()
  • Add danger on validate step of bitbucket-pipelines.yml
script:
    - yarn
    - yarn danger ci
    - [...]
  • Install danger as dev dependencies
yarn add danger -D

With npm:

  • Install @arquivei/danger
npm install @arquivei/danger --dev
  • Create dangerfile.js on root of project
import arquiveiDanger from '@arquivei/danger'

arquiveiDanger()
  • Add danger script package.json
"scripts": {
    "[...]"
    "danger": "danger ci"
}
  • Add danger on validate step of bitbucket-pipelines.yml
script:
    - npm install
    - npm run danger
    - [...]
  • Install danger as dev dependencies
npm install danger -D

Repository variables

To run DangerJS in the Bitbucket pipeline it is necessary to configure two environment variables:

  • DANGER_BITBUCKETCLOUD_OAUTH_KEY
  • DANGER_BITBUCKETCLOUD_OAUTH_SECRET

The value of the variables is confidential for each company.

Local Validate

You can validate on your local if danger is working as expected:

//yarn
yarn danger pr <pr-link>

//npm
npm run danger pr <pr-link>.

DangerJS

Danger runs during your CI process, and gives teams the chance to automate common code review chores.

More information about DangerJS: https://danger.systems/js/

2.3.0

2 years ago

2.2.5

2 years ago

2.2.3

2 years ago

2.2.4

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.2.2

2 years ago

2.1.0

2 years ago

2.0.17

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

2.0.15

2 years ago

2.0.16

2 years ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.12

2 years ago

2.0.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago