Skip to content

Delegator GitHub comment field-mapping tables ​

Canonical reference for the delegator's task_input field mappings across GitHub comment event types. The delegator prompt references this doc and keeps only its routing logic inline.

issue_comment.created ​

When the event is issue_comment.created (comment on an issue or PR conversation), map task_input fields from these payload paths:

FieldRequiredSource
comment_idyespayload.comment.id
comment_bodyyespayload.comment.body
comment_urlyespayload.comment.html_url
comment_authoryespayload.sender.login
issue_numberyespayload.issue.number
issue_titleyespayload.issue.title
issue_urlyespayload.issue.html_url
is_pryespayload.issue.pull_request != null
repo_full_nameyespayload.repository.full_name
pr_numberif is_pr is truesame as issue_number

pull_request_review_comment.created ​

When the event is pull_request_review_comment.created (inline diff comment), the payload shape differs — there is no payload.issue; the PR lives under payload.pull_request. Map instead:

FieldSource
comment_idpayload.comment.id
comment_bodypayload.comment.body
comment_urlpayload.comment.html_url
comment_authorpayload.sender.login
pr_number / issue_numberpayload.pull_request.number
issue_titlepayload.pull_request.title
issue_urlpayload.pull_request.html_url
is_pralways true
repo_full_namepayload.repository.full_name

Also include the inline location so the worker knows what the comment refers to: diff_path (payload.comment.path), diff_line (payload.comment.line), and diff_hunk (payload.comment.diff_hunk).

pull_request_review.submitted / .edited ​

When the event is pull_request_review.submitted or pull_request_review.edited, the mention is in the review summary; map from payload.review and payload.pull_request:

FieldSource
review_idpayload.review.id
comment_bodypayload.review.body
comment_urlpayload.review.html_url
comment_authorpayload.review.user.login
review_statepayload.review.state (approved / changes_requested / commented)
pr_number / issue_numberpayload.pull_request.number
issue_titlepayload.pull_request.title
issue_urlpayload.pull_request.html_url
is_pralways true
repo_full_namepayload.repository.full_name