jetjinser / pr-merge-notifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send the contributor an email when the PR is merged

flows.network Discord flows.network Twitter Create a flow

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.

image

Prerequisite

You will need a Sendgrid API key. If you do not already have one, sign up here.

Deploy PR Merge Notifier on your GitHub repo

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 make simple code edit

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.

image

Deploy the code on flows.network

  1. Sign up for an account for deploying flows on flows.network. It's free.
  2. Click on the "Create a Flow" button to start deploying this app.
  3. Authorize the flows.network to access the pr-merge-notifier repo you just forked.

image

  1. Click the Deploy button to deploy your function.

Configure SaaS integrations

Next, flows.network directs you to configure the SaaS integrations required by your flow.

image

Here we need to configue 2 SaaS integrations.

  1. 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.
  2. 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.

image

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!

Others

To build locally, make sure you have installed Rust and added wasm32-wasi target.

cargo build target wasm32-wasi --release

About


Languages

Language:Rust 100.0%