Skip to content

feat: Add suppress ignored file warnings RFC #215

feat: Add suppress ignored file warnings RFC

feat: Add suppress ignored file warnings RFC #215

name: Tweet RFC Update
on:
# Can't use pull_request because it won't have access to secrets
pull_request_target:
types: [labeled, closed]
jobs:
tweetStateChange:
runs-on: ubuntu-latest
if: github.event.action == 'labeled' && contains(github.event.label.name, 'Commenting')
steps:
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- run: npx @humanwhocodes/tweet 'The RFC "${{ github.event.pull_request.title }}" is now in the ${{ github.event.label.name }} phase.\n\n${{ github.event.pull_request.html_url }}'
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
tweetMerge:
runs-on: ubuntu-latest
if: github.event.action == 'closed' && github.event.pull_request.merged
steps:
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- run: npx @humanwhocodes/tweet 'The RFC "${{ github.event.pull_request.title }}" has been approved and merged!\n\n${{ github.event.pull_request.html_url }}'
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}