Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/doc-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Doc Sync On Command

on:
issue_comment:
types: [created]

jobs:
doc-sync:
if: >-
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/docs') &&
github.actor == github.repository_owner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

uses: activadee/codex-shared-workflows/.github/workflows/codex-doc-sync.yml@main
secrets: inherit