Skip to content

Commit

Permalink
[core] Automatically tweet about good first issues (mui#21879)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt <github@nospam.33m.co>
  • Loading branch information
eps1lon and mbrookes committed Jul 23, 2020
1 parent f45095d commit a82772f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/contributor-twitter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: contributor-twitter
on:
issues:
types: [labeled]
jobs:
tweet:
runs-on: ubuntu-latest
steps:
# This has essentially zero costs and helps debugging if the workflow fails.
- uses: hmarr/debug-action@master
- uses: ethomson/send-tweet-action@v1
if: ${{ github.event.label.name == 'good first issue' && github.event.issue.state == 'open' }}
with:
status: >
A new issue in the @materialui repository has been labelled as a good first issue. If you haven't contributed before, now's your chance!
(Just check that it hasn't already been assigned to anyone before starting.)
${{ github.event.issue.html_url }}"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

0 comments on commit a82772f

Please sign in to comment.