Skip to content

Commit 4eb5b00

Browse files
authored
Merge pull request #21 from telexintegrations/staging
Staging
2 parents 493e6f4 + 0282b96 commit 4eb5b00

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Settings(BaseSettings):
88
host: str = "127.0.0.1"
99
port: int = 8000
1010
reload_value: str = "true"
11-
telex_webhook_url: str = "https://example.com/telex"
11+
telex_webhook_url: str = "https://ping.telex.im/v1/webhooks"
1212
curl_command: str | None = "curl" # might require path/to/curl e.g. `/usr/bin/curl`
1313
app_logo_url: str = "https://example.com/logo.png"
1414
app_url: str = "https://example.com"

tests/test_github.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ def test_send_to_telex_success():
88
json={
99
"pusher": {"name": "test"},
1010
"commits": [
11-
{"key": "value"},
11+
{
12+
"id": "commit_hash",
13+
"message": "commit_message",
14+
"timestamp": "2025-02-18T10:17:54+01:00",
15+
"url": "commit_url",
16+
"author": {"name": "author_name", "email": "author_email"}
17+
}
1218
],
1319
},
1420
)

0 commit comments

Comments
 (0)