Deploy this function on flows.network, and you will automate the work to get reach out to the contributors. When the Pull Request is merged by maintainers, send a thank-you email to the contributors automatically.
This function works when the contributor has a public email on his/her profile page. If the contributor sets his/her email address private, then we can't send him an email.
- You will need a Sendgrid API key. If you do not already have one, sign up here.
- You will also need to sign into flows.network from your GitHub account. It is free.
Click on the Create and Build button.
Next, you will tell the bot which GitHub repo it needs to monitor for upcoming PRs.
github_owner
: GitHub org for the repo you want to deploy the 🤖 on.github_repo
: GitHub repo you want to deploy the 🤖 on.
Let's see an example. You would like to deploy the bot on
WasmEdge/wasmedge_hyper_demo
repo. Heregithub_owner = WasmEdge
andgithub_repo = wasmedge_hyper_demo
.
Click on the Connect or + Add new authentication button to give the function access to the GitHub repo to deploy the 🤖. You'll be redirected to a new page where you must grant flows.network permission to the repo.
Close the tab and go back to the flow.network page once you are done. Click on Deploy.
Next, you will need to set up the email. Here we use SendGrid to do this.
sendgrid_sender_address
: the sender's email, which should be the same as your SendGrid setting.
![image](https://private-user-images.githubusercontent.com/45785633/248639392-fc52db79-f735-42dd-8c27-9e319b752dbd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4Mjk3MDIsIm5iZiI6MTcyMjgyOTQwMiwicGF0aCI6Ii80NTc4NTYzMy8yNDg2MzkzOTItZmM1MmRiNzktZjczNS00MmRkLThjMjctOWUzMTliNzUyZGJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDAzNDMyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjZDA5MjkwOTdjNTU4NmUyOWJlZDg5MWI5ZTk0ZGFkMmVjYWY2YmI0NTg1MWJiMWY1ODk5YmU3ZDY1MmM5NjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9dg8QSOwb8SAiLlSzF0bMMt8vJnICDs2uUTT5cYJQzA)
Click on the Connect or + Add new authentication button to give the function access to use your email address. You'll be redirected to a new page where you must grant flows.network permission to your SendGrid account.
Close the tab and go back to the flow.network page once you are done. Click on Deploy.
As soon as the flow function's status turns ready
and the flow's status becomes running
, the PR merge notifier goes live. Get connected with your contributor right away as contributors increase!