You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (pullRequest.headRepositoryOwner.login === 'laravel') {
49
-
console.log('PR owned by laravel');
50
-
51
-
return;
52
-
}
53
-
54
-
if (! pullRequest.maintainerCanModify) {
55
-
console.log('PR not owned by Laravel and does not have maintainer edits enabled');
56
-
57
-
await github.rest.issues.createComment({
58
-
issue_number: pullNumber,
59
-
owner: 'laravel',
60
-
repo: 'framework',
61
-
body: "Thanks for submitting a PR!\n\nIn order to review and merge PRs most efficiently, we require that all PRs grant maintainer edit access before we review them. For information on how to do this, [see the relevant GitHub documentation](https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork). Additionally, GitHub doesn't allow maintainer permissions from organization accounts. Please resubmit this PR with maintainer permissions enabled."
0 commit comments