chore: add tweet posting script for autonomous social updates#11
Merged
zacharias-ona merged 1 commit intomainfrom Apr 14, 2026
Merged
chore: add tweet posting script for autonomous social updates#11zacharias-ona merged 1 commit intomainfrom
zacharias-ona merged 1 commit intomainfrom
Conversation
Adds scripts/tweet.ts — posts to @swfactory_dev via Twitter API v2 with OAuth 1.0a. Called by the Tweet Drafter automation as: npx tsx scripts/tweet.ts "<tweet text>" Requires TWITTER_CONSUMER_KEY, TWITTER_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET env vars. Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
✅ UI verification skipped — no UI files changed ( |
Collaborator
Author
|
⏭️ Post-merge verification skipped — |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scripts/tweet.tsso the Tweet Drafter automation can post to@swfactory_dev autonomously.
What
scripts/tweet.ts— CLI script that posts a tweet via Twitter API v2 with OAuth 1.0atwitter-api-v2added as a dev dependencynpx tsx scripts/tweet.ts "Your tweet text"Env vars required
TWITTER_CONSUMER_KEYTWITTER_SECRET_KEYTWITTER_ACCESS_TOKENTWITTER_ACCESS_TOKEN_SECRETAll four are already configured as project secrets.
Tested
Live-tested — successfully posted: https://x.com/swfactory_dev/status/2044145900646256803