-
Notifications
You must be signed in to change notification settings - Fork 12
/
dangerfile.ts
27 lines (18 loc) · 1.04 KB
/
dangerfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { danger, markdown } from 'danger';
const modifiedDefinitionJson = danger.git.fileMatch('src/theme/definition.json');
if (modifiedDefinitionJson.edited) {
markdown(`
Hey dear reviewer, I'm the Gravitee.io bot :robot:
I just want to tell you that \`definition.json\` has been updated in this PR. As this file is used to theme clients' portals you should carefully review it to avoid any regression!
Also, after merging this PR, you should update the \`definition.json\` of [APIM Rest API](https://github.com/gravitee-io/gravitee-management-rest-api).
`);
}
const packageJson = danger.git.fileMatch('package.json');
if (packageJson.edited) {
markdown(`
Hey dear reviewer, I'm the Gravitee.io bot :robot:
I just want to tell you that \`package.json\` has been updated in this PR.
Some components are based on third party libraries, for integration into a web component, we extract the css from its libraries as assets.
WARNING: When \`highlight.js\` or \`github-markdown-css\` are updated, we must run \`yarn build\` task to update the css.
`);
}