Gitili needs n8n to:
- generate 5 commit message suggestions
- send Telegram notifications after
git push
- Open n8n in your browser
- Create a new workflow (or open an empty one)
- Click Import → Import from Clipboard
- Paste the workflow JSON from this repository:
n8n/workflow.json(recommended to include in this repo)- It contains two webhooks:
/webhook/gitili/commit-message/webhook/gitili/push
- It contains two webhooks:
-
Save the workflow
-
Configure credentials:
- OpenAI credentials in the “Message a model” node
- Telegram credentials in the “Telegram Send Message” node
-
Activate the workflow (toggle Active)
IMPORTANT:
- When the workflow is Active, n8n uses
/webhook/...- When testing in “Listen/Test”, n8n uses
/webhook-test/...
- In Telegram, open
@BotFather - Create a bot:
/newbot - Copy the bot token
- In n8n → Credentials → create Telegram API credential
- Paste the bot token
To get your chat_id, send a message to your bot and run:
curl "https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates"
## Run n8n (Docker) + Import Workflow
This repo includes an n8n workflow at:
- `n8n/workflow.json`
### 1) Start n8n with Docker
Requirements:
- Docker + Docker Compose installed
From the project root:
```bash
cp .env.example .env
# edit .env and set:
# - N8N_ENCRYPTION_KEY
# - (optional) basic auth user/pass
nano .env