Skip to content

Commit

Permalink
chore: create a dangerfile.ts and check for definition.json modific…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
gaetanmaisse committed Jul 27, 2021
1 parent 704e4ac commit d9ff2bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dangerfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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).
`);
}

0 comments on commit d9ff2bf

Please sign in to comment.