https://danger.systems/js/
environments/review-danger-4pi5yr/deployments/276
Alex Gleason 2022-06-15 16:24:52 -05:00
rodzic f34a5b81f8
commit 7dd40c46c5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
4 zmienionych plików z 624 dodań i 11 usunięć

Wyświetl plik

@ -22,6 +22,10 @@ deps:
changes:
- yarn.lock
danger:
stage: test
script: yarn danger ci
lint-js:
stage: test
script: yarn lint:js

15
dangerfile.ts 100644
Wyświetl plik

@ -0,0 +1,15 @@
import { danger, warn } from 'danger';
// No PR is too small to include a description of why you made a change
if (danger.gitlab.mr.description.length < 10) {
warn('Please include a description of your PR changes.');
}
// Check for a CHANGELOG entry
const hasChangelog = danger.git.modified_files.some(f => f === 'CHANGELOG.md');
const description = danger.gitlab.mr.description + danger.gitlab.mr.title;
const isTrivial = description.includes('#trivial');
if (!hasChangelog && !isTrivial) {
warn('Please add a changelog entry for your changes.');
}

Wyświetl plik

@ -209,6 +209,7 @@
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.0",
"cross-env": "^7.0.3",
"danger": "^11.0.7",
"eslint": "^7.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^39.2.9",

615
yarn.lock

Plik diff jest za duży Load Diff