Conversation
activadee
commented
Nov 9, 2025
- adds a reusable workflow that listens for '/docs' comments on PRs
- runs codex doc sync only when the repository owner triggers it
- pushes the auto-generated documentation updates via the shared workflow
| if: >- | ||
| github.event.issue.pull_request && | ||
| startsWith(github.event.comment.body, '/docs') && | ||
| github.actor == github.repository_owner |
There was a problem hiding this comment.
github.actor == github.repository_owner only evaluates true when the commenter’s username exactly matches the repository owner string. That works for a personal fork but fails for any org-owned repo, since github.repository_owner becomes the organization (e.g. my-org) and no individual github.actor login will ever match. As written, no one— including org owners—can trigger this job, so /docs commands never run. Please use a more appropriate guard, e.g. check github.event.comment.author_association for OWNER/MEMBER or maintain a list of allowed usernames.
Codex Review SummaryRecommendation: 🚫 Changes required – 1 inline issue detected. Summary: Inline findings:
Generated at 2025-11-09T20:19:03.322Z. |