blob: 655b12ec71caf4f97984bc7466389ce3acd3c5e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Import the feedback functions
import { message, warn, fail, markdown } from "danger"
const child_process = require('child_process');
// Make sure that the mapbox-gl-js submodule pin is up to date
const submodulePinsToMaster = child_process.execSync('git -C mapbox-gl-js branch -a --contains `git -C mapbox-gl-js rev-parse HEAD`').toString().split('\n').indexOf(' remotes/origin/master') >= 0;
if (!submodulePinsToMaster) {
fail(`mapbox-gl-js submodule pin is not yet merged to master`);
}
const coreFileDiff = child_process.execSync('scripts/generate-core-files.sh').toString();
if (coreFileDiff != '') {
fail(`Please run <code>scripts/generate-core-files.sh</code>:<pre lang="diff">${coreFileDiff}</pre>`)
}
|