moto/.github/workflows/payment_notification.yml
2023-05-29 20:37:38 +00:00

31 lines
1.1 KiB
YAML

# When the appropriate label is applied, notify user that payment is waiting
#
name: "Payment Notification"
on:
pull_request:
types: [ labeled ]
jobs:
test:
if: ${{ github.repository == 'getmoto/moto' && github.event.label.name == 'payment-approved' }}
runs-on: ubuntu-latest
steps:
- name: Leave comment
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Hi @${{ github.event.pull_request.user.login }},
Thank you for contributing to Moto!
To show our thanks, we'd like to share some of the donations that we've received with you. PR's like this are the big reason that Moto is as successful as it is - so it's only fair that you, as a contributor, gets to share the spoils.
We've created a companion website with more information:
https://payments.getmoto.org/
This website is still in beta, but everything should work. Feel free to open a bug or discussion if you run into any problems:
https://github.com/getmoto/payments