Compare commits

...
Author SHA1 Message Date
Blake Friedman 6291332455 fix: mitigate DangerJS transpilation bug
Danger seems to have a bug where it's not transpiling the import of
@rnx-kit/rn-changelog-generator. This mitigates the issue to get our
project back on track.

Changelog: [internal]
2024-10-24 13:43:43 -07:00
+1 -4
View File
@@ -8,9 +8,6 @@
*/
'use strict';
const {validate: validateChangelog} =
require('@rnx-kit/rn-changelog-generator').default;
const {danger, fail, /*message,*/ warn} = require('danger');
const includes = require('lodash.includes');
@@ -60,7 +57,7 @@ if (!includesTestPlan && !isFromPhabricator) {
// Check if there is a changelog and validate it
if (!isFromPhabricator) {
const status = validateChangelog(danger.github.pr.body);
const status = require('@rnx-kit/rn-changelog-generator').default.validate(danger.github.pr.body);
const changelogInstructions =
'See <a target="_blank" href="https://reactnative.dev/contributing/changelogs-in-pull-requests">Changelog format</a>';
if (status === 'missing') {