There was an error while loading. Please reload this page.
1 parent 22bae97 commit e16db5dCopy full SHA for e16db5d
1 file changed
.github/workflows/codex-openai-review.yml
@@ -85,8 +85,6 @@ jobs:
85
if (!context.payload.issue.pull_request) return core.setOutput('eligible', 'false');
86
const command = context.payload.comment.body.trim();
87
if (!/^@codex(?:\s+review(?:\s+[\s\S]+)?)?\s*$/i.test(command)) return core.setOutput('eligible', 'false');
88
- const { data: permission } = await github.rest.repos.getCollaboratorPermissionLevel({ owner: context.repo.owner, repo: context.repo.repo, username: context.payload.comment.user.login });
89
- if (!['admin', 'maintain', 'write'].includes(permission.permission)) return core.setOutput('eligible', 'false');
90
number = context.payload.issue.number;
91
requestCommentId = String(context.payload.comment.id);
92
} else if (event === 'workflow_dispatch') {
0 commit comments