1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/.github/workflows/merged-notification.yml
Jason Etcovitch ee6f5ae03e Update merged-notification.yml (#183)
Co-authored-by: Zeke Sikelianos <zeke@sikelianos.com>
2020-10-07 16:01:08 -04:00

24 lines
1.0 KiB
YAML

on:
pull_request:
types: ['closed']
jobs:
comment:
if: github.event.repository.private == false && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
script: |
github.issues.createComment({
...context.repo,
issue_number: context.payload.pull_request.number,
body: `Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. To add your ✨ contribution to the README.md, create a new comment in this PR with:
\`\`\`
@all-contributors please add @${context.payload.pull_request.user.login} for docs
\`\`\`
If you want to, you can use the [emoji key](https://allcontributors.org/docs/en/emoji-key) to replace docs with a different contribution type.`
})