That's a genius idea @zwacky 🤯
Something like following (not tested) would tweet the release notes
const {TwitterClient} = require('twitter-api-client'); const fetch = require('node-fetch'); const tweet = async (status) => { const twitterClient = new TwitterClient({ apiKey: process.env.TWITTER_API_KEY, apiSecret: process.env.TWITTER_API_SECRET, accessToken: process.env.TWITTER_API_ACCESS_TOKEN, accessTokenSecret: process.env.TWITTER_ACCESS_TOKEN_SECRET, }); await twitterClient.tweets.statusesUpdate({status}); }; (async () => { try { const {body} = await fetch `https://api.github.com/repos/deckgo/deckdeckgo/releases/latest`; await tweet(body); } catch (err) { console.error(err); } })();
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's a genius idea @zwacky 🤯
Something like following (not tested) would tweet the release notes