Implementation:Mage ai Mage ai GitHub Issue Events Schema
| Knowledge Sources | |
|---|---|
| Domains | Data_Integration, GitHub, Schema |
| Last Updated | 2026-02-09 00:00 GMT |
Overview
JSON Schema definition for GitHub issue event records used by the Singer-based GitHub source connector.
Description
This schema defines the structure and types for issue event data extracted from the GitHub Issue Events API. It is loaded by the GitHub source connector during stream discovery to validate and type-check extracted records. The schema follows the JSON Schema specification and includes top-level properties such as commit_id, created_at (with date-time format), commit_url, url, event, issue (a deeply nested object containing user, comments, author_association, milestone, labels, and other issue metadata), id, actor, node_id, performed_via_github_app, _sdc_repository, rename, label, requested_reviewer, and review_requester. The schema uses $ref references to shared/user.json for reusable user sub-schemas.
Usage
This schema is automatically loaded by the GitHub source connector during the discovery phase. It defines the available columns and their types for the issue_events stream.
Code Reference
Source Location
- Repository: mage-ai
- File: mage_integrations/mage_integrations/sources/github/tap_github/schemas/issue_events.json
- Lines: 1-963
Signature
{
"type": ["null", "object"],
"properties": {
"commit_id": { "type": ["null", "string"] },
"created_at": { "type": ["null", "string"], "format": "date-time" },
"commit_url": { "type": ["null", "string"] },
"url": { "type": ["null", "string"] },
"event": { "type": ["null", "string"] },
"issue": { "type": ["null", "object"], "properties": { "user": { "$ref": "shared/user.json#/" }, "comments": {}, "milestone": {}, "..." : "..." } },
"id": { "type": ["null", "number"] },
"actor": { "$ref": "shared/user.json#/" },
"node_id": { "type": ["null", "string"] },
"_sdc_repository": { "type": ["null", "string"] }
}
}
Import
# Loaded automatically by Source.load_schemas_from_folder()
# Path: mage_integrations/mage_integrations/sources/github/tap_github/schemas/issue_events.json
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | JSON file | Yes | Loaded from disk by schema loader |
Outputs
| Name | Type | Description |
|---|---|---|
| schema | dict | JSON Schema object with properties, types, and format constraints |
Usage Examples
import json
import os
schema_path = os.path.join(
"mage_integrations/mage_integrations/sources/github/tap_github/schemas",
"issue_events.json"
)
with open(schema_path) as f:
schema = json.load(f)
print(list(schema["properties"].keys()))