automated posting to X — xqboost
auto-posts approved tweets to X via API on a schedule — morning slot for archive backlog, evening slot for current builds
auto-post pipeline for xqboost that connects the tweet queue to X's API.
the system that makes xqboost a real publishing tool instead of a draft manager. approved tweets get posted automatically on a schedule — no manual copy-paste needed.
how it works
- GitHub Action runs twice daily — 9am (morning slot) and 9pm (evening slot)
- morning slot posts archive tweets, catching up the backlog of past projects
- evening slot posts current tweets about today's builds
- random 0-90 minute delay on each run to avoid bot detection patterns
- post-tweet.js signs requests with OAuth 1.0a and posts to X API v2
pipeline rules
- checks settings/autopost in Firestore — if disabled, exits immediately
- picks tweets based on slot type, with manual postOrder override support
- on success: marks tweet as posted, saves X post URL back to Firestore
- on failure: marks as failed with error message, won't retry
generator improvements
- queue cap of 10 pending tweets — generator stops when queue is full
- one announcement per source — dismissed tweets count as "covered"
- max 3 drafts per run to prevent flooding
- t.co-aware character counting (URLs = 23 chars)
the pipeline that turns a queue into a feed.
stack
← select a file to view