mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-12-06 07:44:04 +00:00
ci(regen): run the API regeneration every day, not once a week (#54)
Telegram can change the Bot API at any time; a daily run keeps the generated API at most a day behind.
This commit is contained in:
@@ -347,7 +347,7 @@ make snapshot # grab the latest HTML from core.telegram.org
|
||||
make regen # scrape → audit → emit Go → run tests → regenerate docs
|
||||
```
|
||||
|
||||
The audit tool checks for `any`-typed escapes, surprise `bool` returns, and signature drift. CI runs it on every PR, and a weekly workflow opens an auto-PR with regenerated code so a new Bot API version never sits longer than a week.
|
||||
The audit tool checks for `any`-typed escapes, surprise `bool` returns, and signature drift. CI runs it on every PR, and a daily workflow opens an auto-PR with regenerated code so a new Bot API version never sits longer than a day.
|
||||
|
||||
If something in Telegram's docs trips up the scraper, add an override to `internal/spec/overrides.json`. The audit will tell you what to put there.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user