diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index 5da504e..aa0f9d2 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -43,12 +43,13 @@ jobs: env | grep '^DEBUG_' dispatch: - # For PRs + # For PRs: only if not from a fork # For comments: only if user types @gemini-cli and is OWNER/MEMBER/COLLABORATOR # For issues: only on open/reopen if: |- ( - github.event_name == 'pull_request' + github.event_name == 'pull_request' && + github.event.pull_request.head.repo.fork == false ) || ( github.event.sender.type == 'User' && startsWith(github.event.comment.body || github.event.review.body || github.event.issue.body, '@gemini-cli') &&