diff --git a/foo b/foo new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/scripts/dangerfile.js b/scripts/dangerfile.js index 4ba7db0d92d9..da60da03fc4d 100644 --- a/scripts/dangerfile.js +++ b/scripts/dangerfile.js @@ -166,6 +166,10 @@ const checkTargetBranch = () => { const author = danger.github.pr.user; const authorAssociation = danger.github.pr.author_association; + console.log('authorAssociation', authorAssociation); + console.log('author', author); + console.log(JSON.stringify(danger.github.pr, null, 2)); + // Only check for non-team members (not OWNER, MEMBER) and skip GitHub Actions bot if ( ['OWNER', 'MEMBER'].includes(authorAssociation) || @@ -174,6 +178,8 @@ const checkTargetBranch = () => { return; } + fail(JSON.stringify(danger.github.pr, null, 2)); + if (targetBranch === 'main' || targetBranch.includes('release')) { fail( `This PR targets \`${targetBranch}\`, but it should target \`next\`. Please update the base branch of your PR.`