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 === 'statamic') {
52
-
console.log('PR owned by statamic');
53
-
return;
54
-
}
55
-
56
-
if (pullRequest.state !== 'OPEN') {
57
-
console.log('PR has already been closed or merged');
58
-
return;
59
-
}
60
-
61
-
if (!pullRequest.maintainerCanModify) {
62
-
console.log('PR not owned by statamic and does not have maintainer edits enabled');
63
-
64
-
await github.rest.issues.createComment({
65
-
issue_number: pullNumber,
66
-
owner: 'statamic',
67
-
repo,
68
-
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 from a personal GitHub account with maintainer permissions enabled."
0 commit comments