moto/.github/workflows/payment_notification.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

2023-05-24 21:30:54 +00:00
# When the appropriate label is applied, notify user that payment is waiting
#
name: "Payment Notification"
on:
pull_request:
types: [ labeled ]
jobs:
2023-06-14 11:48:03 +00:00
leave_comment:
2023-05-24 21:30:54 +00:00
if: ${{ github.repository == 'getmoto/moto' && github.event.label.name == 'payment-approved' }}
runs-on: ubuntu-latest
2023-06-14 11:48:03 +00:00
permissions:
contents: write
pull-requests: write
2023-05-24 21:30:54 +00:00
steps:
2023-06-08 17:07:57 +00:00
- uses: actions/github-script@v5
2023-05-24 21:30:54 +00:00
with:
2023-06-08 17:07:57 +00:00
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
2023-06-17 20:26:33 +00:00
body: `Hi @${{ github.event.pull_request.user.login }},
2023-06-08 17:07:57 +00:00
Thank you for contributing to Moto!
2023-06-08 17:07:57 +00:00
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.
2023-06-08 17:07:57 +00:00
We've created a companion website with more information:
https://payments.getmoto.org/
2023-06-08 17:07:57 +00:00
This website is still in beta, but everything should work. Feel free to open a bug or discussion if you run into any problems:
2023-06-17 20:26:33 +00:00
https://github.com/getmoto/payments`
2023-06-08 17:07:57 +00:00
})