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.
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:
Field
Source
comment_id
payload.comment.id
comment_body
payload.comment.body
comment_url
payload.comment.html_url
comment_author
payload.sender.login
pr_number / issue_number
payload.pull_request.number
issue_title
payload.pull_request.title
issue_url
payload.pull_request.html_url
is_pr
always true
repo_full_name
payload.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).
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:
Delegator GitHub comment field-mapping tables
Canonical reference for the delegator's
task_inputfield 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), maptask_inputfields from these payload paths:comment_idpayload.comment.idcomment_bodypayload.comment.bodycomment_urlpayload.comment.html_urlcomment_authorpayload.sender.loginissue_numberpayload.issue.numberissue_titlepayload.issue.titleissue_urlpayload.issue.html_urlis_prpayload.issue.pull_request != nullrepo_full_namepayload.repository.full_namepr_numberis_pris trueissue_numberpull_request_review_comment.created
When the event is
pull_request_review_comment.created(inline diff comment), the payload shape differs — there is nopayload.issue; the PR lives underpayload.pull_request. Map instead:comment_idpayload.comment.idcomment_bodypayload.comment.bodycomment_urlpayload.comment.html_urlcomment_authorpayload.sender.loginpr_number/issue_numberpayload.pull_request.numberissue_titlepayload.pull_request.titleissue_urlpayload.pull_request.html_urlis_prtruerepo_full_namepayload.repository.full_nameAlso include the inline location so the worker knows what the comment refers to:
diff_path(payload.comment.path),diff_line(payload.comment.line), anddiff_hunk(payload.comment.diff_hunk).pull_request_review.submitted / .edited
When the event is
pull_request_review.submittedorpull_request_review.edited, the mention is in the review summary; map frompayload.reviewandpayload.pull_request:review_idpayload.review.idcomment_bodypayload.review.bodycomment_urlpayload.review.html_urlcomment_authorpayload.review.user.loginreview_statepayload.review.state(approved / changes_requested / commented)pr_number/issue_numberpayload.pull_request.numberissue_titlepayload.pull_request.titleissue_urlpayload.pull_request.html_urlis_prtruerepo_full_namepayload.repository.full_name