@on("github.issues")
def agent(input):
pass
{
"$raw": {},
"action": "opened",
"issue": {
"author": "octocat",
"body": "When trying to login with GitHub, the callback URL is not handling special characters correctly.",
"comments": [
{
"author": "other-user",
"body": "I can reproduce this issue. It happens when the username contains '@' symbol.",
"created_at": "2024-03-21T14:35:00Z",
"id": 987654321,
"node_id": "MDEyOklzc3VlQ29tbWVudDk4NzY1NDMyMQ==",
"url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/987654321"
}
],
"created_at": "2024-03-21T14:30:00Z",
"id": 1234567890,
"labels": [
{
"color": "d73a4a",
"default": true,
"description": "Something isn't working",
"id": 123456,
"name": "bug",
"node_id": "MDU6TGFiZWwxMjM0NTY="
},
{
"color": "b60205",
"default": false,
"description": "Needs immediate attention",
"id": 789012,
"name": "high-priority",
"node_id": "MDU6TGFiZWw3ODkwMTI="
}
],
"node_id": "MDU6SXNzdWUxMjM0NTY3ODkw",
"number": 42,
"state": "open",
"title": "Found a bug in the authentication flow",
"url": "https://api.github.com/repos/octocat/Hello-World/issues/42"
},
"owner": "octocat",
"repo": "Hello-World"
}
def agent(input):
$raw = input.get("$raw")
action = input.get("action")
issue = input.get("issue")
owner = input.get("owner")
repo = input.get("repo")
Fields
object
The raw Github
issues event payload.string
object
The issue that the event is on.
Show issue properties
Show issue properties
string
The author of the issue.
string
The body of the issue.
object[]
string
The date and time the issue was created.
number
The ID of the issue.
object[]
string
The node ID of the issue.
number
The number of the issue.
string
The state of the issue.
string
The title of the issue.
string
The URL of the issue.
string
The owner of the repository.
string
The name of the repository.

