Deploy this function on flows.network, and you will automate the work to get reach out to the contributors. When the Pull Requests is merged by miantianers, send a thank you email to the contributors.
This function works when the contributor has a plublic email in his/her profile page. If the contributor sets 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.
To install this PR merge notifier app, we use flows.network, a serverless platform that lets you make a workflow app in three simple steps.
Fork this repo and open the source code. Replace the parameters in the red boxes below with your personal GitHub account, the GitHub Repo owner and repo name where you want to install the app and then your sendgrid account respectively.
- Sign up for an account for deploying flows on flows.network. It's free.
- Click on the "Create a Flow" button to start deploying this app.
- Authorize the flows.network to access the
pr-merge-notifier
repo you just forked.
- Click the Deploy button to deploy your function.
Next, flows.network directs you to configure the SaaS integrations required by your flow.
Here we need to configue 2 SaaS integrations.
- Click the "Connect/+ Add new authentication" button to authenticate your GitHub account. You'll be redirected to a new page to grant flows.network permission to install the
flows-network-integration
bot on the repo that you changed in the code above. - Click the "Connect/+ Add new authentication" button to authenticate your Sendgrid account. You'll be redirected to a new page where you could copy and paste your SendGrid API key and then name the key. Note that the name you enter here should be the same as the name in the code above.
After that, click the Check button to see your flow details. 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!
flows.network is still in its early stages. We would love to hear your feedback!
To build locally, make sure you have installed Rust and added wasm32-wasi
target.
cargo build target wasm32-wasi --release