Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ cp .env.example .env
| HOST | Server host | 0.0.0.0 |
| PORT | Server port | 8000 |
| TELEX_WEBHOOK_URL | Telex webhook URL | https://ping.telex.im/v1/webhooks |
| SLACK_URL | Slack webhook URL for notifications | https://hooks.slack.com/... |
| APP_LOGO_URL | URL for app logo | https://example.com/logo.png |
| APP_URL | Application URL | https://your-app.com |
| TARGET_URL | Telex target URL | https://your-app.com/webhook/telex |
Expand Down Expand Up @@ -248,9 +247,9 @@ You can customize the analyzer through Telex integration settings:
```json
{
"feat": [
"feat(ui): add dark mode toggle",
"feat(api): implement rate limiting"
]
"feat(auth): implement JWT authentication flow\n\nImplemented JWT-based authentication with token expiration handling to secure user sessions.",
"feat(ui): add dark mode toggle with system preference detection\n\nAdded dark mode toggle that automatically adjusts based on system settings for improved user experience.",
],
}
```

Expand Down
6 changes: 3 additions & 3 deletions src/core/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def _apply_data_settings(self):
"""
for setting in self.settings:
if setting["label"] == "commit_types":
self.commit_types.update(ast.literal_eval(setting["default"])) if setting["default"] else self.commit_types
self.commit_types.update(ast.literal_eval(setting["default"].replace("\n", "\\n"))) if setting["default"] else self.commit_types
if setting["label"] == "example_commits":
self.example_commits.update(ast.literal_eval(setting["default"])) if setting["default"] else self.example_commits
self.example_commits.update(ast.literal_eval(setting["default"].replace("\n", "\\n"))) if setting["default"] else self.example_commits
if setting["label"] == "training_data":
self.commit_training_data.update(ast.literal_eval(setting["default"])) if setting["default"] else self.commit_training_data
self.commit_training_data.update(ast.literal_eval(setting["default"].replace("\n", "\\n"))) if setting["default"] else self.commit_training_data
if setting["label"] == "slack_url":
self.slack_url = setting["default"]

Expand Down