issues.opened
public-repo/samples/github/issues.opened.json
View raw payload
{
"action": "opened",
"issue": {
"url": "https://api.github.com/repos/acme/example-service/issues/42",
"repository_url": "https://api.github.com/repos/acme/example-service",
"labels_url": "https://api.github.com/repos/acme/example-service/issues/42/labels{/name}",
"comments_url": "https://api.github.com/repos/acme/example-service/issues/42/comments",
"events_url": "https://api.github.com/repos/acme/example-service/issues/42/events",
"html_url": "https://github.com/acme/example-service/issues/42",
"id": 2400000042,
"node_id": "I_kwDOExample42",
"number": 42,
"title": "Checkout retries twice on timeout",
"user": {
"login": "octocat-demo",
"id": 1000001,
"node_id": "U_kgDOExample1",
"avatar_url": "https://avatars.githubusercontent.com/u/1000001?v=4",
"html_url": "https://github.com/octocat-demo",
"type": "User",
"site_admin": false
},
"labels": [
{
"id": 7001,
"node_id": "LA_kwDOExample1",
"url": "https://api.github.com/repos/acme/example-service/labels/bug",
"name": "bug",
"color": "d73a4a",
"default": true,
"description": "Something is not working"
},
{
"id": 7002,
"node_id": "LA_kwDOExample2",
"url": "https://api.github.com/repos/acme/example-service/labels/agent",
"name": "agent",
"color": "5319e7",
"default": false,
"description": "Ready for an automated triage run"
}
],
"state": "open",
"locked": false,
"assignee": null,
"assignees": [],
"milestone": null,
"comments": 0,
"created_at": "2026-10-31T14:02:11Z",
"updated_at": "2026-10-31T14:02:11Z",
"closed_at": null,
"author_association": "MEMBER",
"active_lock_reason": null,
"body": "When the payment provider times out, checkout retries the request twice and creates duplicate orders.\n\nSteps to reproduce are in the linked runbook. Please add a regression test before changing the retry policy.",
"reactions": {
"url": "https://api.github.com/repos/acme/example-service/issues/42/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/acme/example-service/issues/42/timeline",
"performed_via_github_app": null
},
"repository": {
"id": 5000001,
"node_id": "R_kgDOExample",
"name": "example-service",
"full_name": "acme/example-service",
"private": false,
"owner": {
"login": "acme",
"id": 2000001,
"node_id": "O_kgDOExample",
"type": "Organization"
},
"html_url": "https://github.com/acme/example-service",
"description": "Fictional checkout service used in Hooks payload samples.",
"fork": false,
"default_branch": "main",
"visibility": "public"
},
"organization": {
"login": "acme",
"id": 2000001,
"node_id": "O_kgDOExample"
},
"sender": {
"login": "octocat-demo",
"id": 1000001,
"node_id": "U_kgDOExample1",
"type": "User"
},
"installation": {
"id": 3000001,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzAwMDAwMQ=="
}
}View destination template
public-repo/samples/github/templates/issues.opened.json
{
"task": "Triage this GitHub issue.\n\nRepository: {{event.repo}}\nTitle: {{event.subject.title}}\nURL: {{event.subject.url}}\nLabels: {{event.subject.labels | join:\", \"}}\n\n{{event.subject.body | truncate:2000}}",
"context": {
"event_type": "{{event.type}}",
"delivery_id": "{{delivery.id}}",
"sender": "{{event.actor.login}}"
}
}