Add GITHUB_NOTIFY_CHAT_ID to make config prompts#184
Conversation
Add interactive prompt for the GitHub notification group chat ID in _cmd_config(), between the issue triage section and optional features. Validates as a non-zero integer (accepts negative Telegram group IDs). Empty input disables the feature. Without this, the env var would be silently dropped on every make apply since _generate_env_file writes from install.conf only. Fixes #183
Review by KaiThis is a clean, focused PR. No critical issues or bugs found. One minor suggestion:
Suggestion (low priority): Everything else looks correct:
Ready to merge. |
Review by KaiThe PR is clean. The prior review's suggestion about No new issues to raise:
Ready to merge. |
Summary
Add
GITHUB_NOTIFY_CHAT_IDto the interactivemake configprompts so it persists ininstall.confand survivesmake apply.Without this, the env var had to be manually added to
/etc/kai/env, where it would be silently dropped on the nextmake apply(which regenerates the env file frominstall.conf).Changes
_validate_chat_id()_cmd_config()promptGITHUB_NOTIFY_CHAT_IDadded to env dict when non-emptytest_writes_install_confinput list updated for new promptTest plan
test_writes_install_confupdated with new prompt inputtest_reads_existing_defaultspasses (empty default accepted)make checkcleanmake config, enter a group chat ID, verify it appears ininstall.confFixes #183