chore: rename master -> main in CI and scripts (#246)
Thanks for contributing to FOSS4G!
This commit is contained in:
@@ -6,8 +6,8 @@ const child_process = require('child_process');
|
||||
const head = child_process.execSync('git -C maplibre-gl-js rev-parse HEAD').toString().trim();
|
||||
const revs = child_process.execSync(`git -C maplibre-gl-js branch -a --contains ${head}`).toString().split('\n');
|
||||
|
||||
if (revs.indexOf(' remotes/origin/master') >= 0) {
|
||||
nitpick.ok(`maplibre-gl-js submodule pin is merged to master`);
|
||||
if (revs.indexOf(' remotes/origin/main') >= 0) {
|
||||
nitpick.ok(`maplibre-gl-js submodule pin is merged to main`);
|
||||
} else {
|
||||
nitpick.fail(`maplibre-gl-js submodule is pinned to ${head}, which isn't merged to master`);
|
||||
nitpick.fail(`maplibre-gl-js submodule is pinned to ${head}, which isn't merged to main`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user