From 09af2ab09266faa31193e978640a677416563e42 Mon Sep 17 00:00:00 2001 From: Vanessasaurus Date: Thu, 18 Jul 2019 09:25:32 -0400 Subject: [PATCH] Adding Twitter Share GitHub Action This action will generate text for the user to copy paste and share on Twitter, including: - a custom message - hashtags - "at" usernames And specifically, it includes links to one or more files that match a pattern from the pull request just merged. I found I needed to do this because the traditional Twitter share buttons didn't work (we can't embed the widget.js from Twitter in GitHub) and then including the hashtags and "at" references in a URL to open the same interface would be truncated in the URL. The use case for this action is any GitHub user/organization that would want to encourage users to contribute content, and then be given a fun Tweet to share that. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4b5ef6d..b7ecf7f 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ Actions are triggered by GitHub platform events directly in a repo and run on-de - [Send a Slack message](https://github.com/apex/actions/tree/master/slack) - [Post a Slack message as a bot](https://github.com/pullreminders/slack-action) - [Update Twitter status](https://github.com/xorilog/twitter-action) +- [Generate Tweet content to share pull request file(s) after merge](https://github.com/vsoch/twitter-share-action/tree/master/pull_request_share) - [Send an SMS from GitHub Actions using Nexmo](https://github.com/nexmo-community/nexmo-sms-action) - [Trigger emails with release notes with SendGrid](https://github.com/bitoiu/release-notify-action) - [Send email on failed GitHub Checks](https://github.com/cirrus-actions/email)