Skip to content

Commit 68bb873

Browse files
Skip branch-PR validation in validate-pr-target-branch workflow (#37988)
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
1 parent f8d2760 commit 68bb873

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/validate-pr-target-branch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
return;
5454
}
5555
56+
// If the PR is from a branch (not a fork), it must be from an internal contributor
57+
if (pr.head.repo && pr.head.repo.id === pr.base.repo.id) {
58+
console.log('PR is from a branch in the same repo - skipping validation');
59+
return;
60+
}
61+
5662
// Check if the user who triggered the action has push permissions
5763
let hasWriteAccess = false;
5864
try {

0 commit comments

Comments
 (0)