Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,14 @@ const checkManualTestingSection = (body) => {

const checkTargetBranch = () => {
const targetBranch = danger.github.pr.base.ref;
const author = danger.github.pr.user;
const authorAssociation = danger.github.pr.author_association;

// Only check for non-team members (not OWNER or MEMBER)
if (['OWNER', 'MEMBER'].includes(authorAssociation)) {
// Only check for non-team members (not OWNER, MEMBER) and skip GitHub Actions bot
if (
['OWNER', 'MEMBER'].includes(authorAssociation) ||
(author.login === 'github-actions[bot]' && author.type === 'Bot')
) {
return;
}

Expand Down
Loading