Skip to content

Commit 5145564

Browse files
committed
feat: implement Telex integration JSON structure
- Add integration.json endpoint with required Telex metadata
1 parent ff5c26d commit 5145564

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

app.py

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -105,35 +105,37 @@ def get_integration_json():
105105
base_url = os.environ.get('APP_URL', request.url_root.rstrip('/'))
106106
integration_json = {
107107
"data": {
108-
"created_at": "2025-02-17",
109-
"updated_at": "2025-02-17",
110-
"description": {
111-
"app_name": "GitHub Commit Tracker",
112-
"app_description": "Tracks commits and sends notifications to Telex.",
113-
"app_logo": "",
114-
"app_url": base_url,
115-
"background_color": "#ffffff",
108+
"date": {
109+
"created_at": "2025-02-20",
110+
"updated_at": "2025-02-20"
116111
},
117-
"is_active": True,
118-
"integration_type": "output",
119-
"key_features": [
120-
"Tracks GitHub commits and sends notifications to Telex",
121-
"Provides real-time updates",
122-
"Easy integration with GitHub",
123-
"Customizable notifications"
124-
],
125-
"integration_category": "Development & Code Management",
126-
"author": "Cynthia Wahome",
127-
"website": base_url,
128-
"settings": [
129-
{
130-
"label": "webhook-slug",
131-
"type": "text",
132-
"required": True,
133-
"default": ""
134-
},
135-
],
136-
"target_url": f"{base_url}/github-webhook",
112+
"descriptions": {
113+
"app_name": "GitHub Commit Tracker",
114+
"app_description": "Tracks commits and sends notifications to Telex.",
115+
"app_logo": "https://cdn-icons-png.flaticon.com/512/6577/6577286.png",
116+
"app_url": "https://github-commit-monitor-4a53c549b932.herokuapp.com",
117+
"background_color": "#ffffff",
118+
},
119+
"is_active": True,
120+
"integration_type": "output",
121+
"integration_category": "Development & Code Management",
122+
"key_features": [
123+
"Tracks GitHub commits and sends notifications to Telex",
124+
"Provides real-time updates",
125+
"Easy integration with GitHub",
126+
"Customizable notifications"
127+
],
128+
"author": "Cynthia Wahome",
129+
"settings": [
130+
{
131+
"label": "webhook-slug",
132+
"type": "text",
133+
"required": true,
134+
"default": "True"
135+
}
136+
],
137+
"target_url": f"{base_url}/github-webhook",
138+
"tick_url": "https://github-commit-monitor-4a53c549b932.herokuapp.com"
137139
}
138140
}
139141
return jsonify(integration_json)

0 commit comments

Comments
 (0)