You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
connector-github polling issue_comment events do not include PR author / PR status #184
@orgloop/connector-github polling supports issue_comment, but pollIssueComments() normalizes comments with only { number, title: '' } for the issue/PR object. That means PR issue-comment events are emitted with:
provenance.pr_author = "unknown"
payload.is_pull_request = false
no PR title/context
This makes it impossible to safely route top-level PR comments only for PRs authored by a target agent/bot. Routes like:
Many GitHub PR comments are issue_comment events, not pull_request_review_comment or pull_request.review_submitted. Examples include normal PR timeline comments and bot summary comments. Odin K's OrgLoop config only routed review events, so top-level PR comments were missed. Adding issue_comment to the event list is not enough because the connector does not enrich the comment with the PR author.
Minimal code pointer
In @orgloop/connector-github/dist/source.js / source equivalent:
normalizeIssueComment() expects an issue-like object with user and pull_request fields, but pollIssueComments() supplies neither.
Expected behavior
For issue comments on PRs, the connector should fetch/enrich the backing issue or PR (or otherwise include enough fields from the GitHub API) so emitted events include:
payload.is_pull_request = true
provenance.pr_author = <PR author login>
provenance.pr_number = <PR number>
PR/issue title in payload
Then agent-specific routes can safely filter by provenance.pr_author without waking on every repo issue comment.
Workaround
Use webhook payloads with full issue/PR context, or add a custom polling/enrichment route outside the stock connector.
Activity