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.
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!