Skip to content

Commit e16db5d

Browse files
Pie8851cursoragent
andauthored
workflows: allow public review requests (#9)
Remove collaborator permission gating so any valid PR comment can request a Codex review. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 22bae97 commit e16db5d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.github/workflows/codex-openai-review.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ jobs:
8585
if (!context.payload.issue.pull_request) return core.setOutput('eligible', 'false');
8686
const command = context.payload.comment.body.trim();
8787
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');
9088
number = context.payload.issue.number;
9189
requestCommentId = String(context.payload.comment.id);
9290
} else if (event === 'workflow_dispatch') {

0 commit comments

Comments
 (0)