Skip to content

Commit 038d40e

Browse files
alan-agius4clydin
authored andcommitted
ci: remove validate-do-not-submit check
This uses `git merge-base --fork-point master` which currently is not yielding a SHA on the patch branch. In some cases merge-base will not working as expected when base is ahead. See https://public-inbox.org/git/[email protected]/T/#r3830f032d76f39b82d0ffe7f8bd77351cf634d29 This validation checks if `DO_NOT_SUBMIT` string literal has been added using `git diff`, when present validation will fail. This check is unneeded as we do not use the `DO_NOT_SUBMIT` pattern, as we typically use `wip!` commit message types. (cherry picked from commit ab84fc5)
1 parent aa8d380 commit 038d40e

File tree

3 files changed

+0
-90
lines changed

3 files changed

+0
-90
lines changed

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,6 @@ jobs:
174174
else
175175
echo "This build is not over a PR, nothing to do."
176176
fi
177-
- run:
178-
name: Validate "do not submit" Commits
179-
command: yarn -s admin validate-do-not-submit
180177
- run:
181178
command: yarn -s admin validate --ci
182179

scripts/validate-do-not-submit.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

scripts/validate.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { logging, tags } from '@angular-devkit/core';
1010
import { execSync } from 'child_process';
1111
import templates from './templates';
1212
import validateBuildFiles from './validate-build-files';
13-
import validateDoNotSubmit from './validate-do-not-submit';
1413
import validateLicenses from './validate-licenses';
1514
import validateUserAnalytics from './validate-user-analytics';
1615

@@ -39,13 +38,6 @@ export default async function (options: { verbose: boolean; ci: boolean }, logge
3938
error = true;
4039
}
4140

42-
if (!options.ci) {
43-
logger.info('');
44-
logger.info(`Running DO_NOT${''}_SUBMIT validation...`);
45-
error = await validateDoNotSubmit({}, logger.createChild('validate-do-not-submit')) != 0
46-
|| error;
47-
}
48-
4941
logger.info('');
5042
logger.info('Running license validation...');
5143
error = await validateLicenses({}, logger.createChild('validate-commits')) != 0

0 commit comments

Comments
 (0)