24 lines
1.0 KiB
YAML
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.`
|
|
})
|