GitHub
Add a donation button to your pull requests

Prerequisites
On your Account page click the "Unlock" button to access the integration capability.
On the Integrations page - generate a token. Keep it safe!
Instructions
In your workflow directory create a pull request template having a placeholder for a button. For example
DONATE_BUTTON. The button can go anywhere in the text.
Create workflow instructions for the pull_request
openedevent. Add steps forperkexchange/github-actionfollowed byactions/checkoutandkaskar2008/action-pr-description-replace.
Customize the perkexchange/github-action step with a donation amount or currency. Other values like memo and orderId can be customized.
Add your integration token from Prerequisites to a new Actions secret called
PERKEXCHANGE_APITOKEN.The github action is setup. When a pull request is opened in the repo, an invoice will be created in Perk.Exchange for the amount and currency specified. A button will appear on the pull request page. When a user clicks the button they can view the details of the invoice and pay it using Code Wallet.
Last updated
Was this helpful?