We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d2760 commit 68bb873Copy full SHA for 68bb873
1 file changed
.github/workflows/validate-pr-target-branch.yml
@@ -53,6 +53,12 @@ jobs:
53
return;
54
}
55
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
+
62
// Check if the user who triggered the action has push permissions
63
let hasWriteAccess = false;
64
try {
0 commit comments