Deploy this function on flows.network, and you will get a Slack bot that send a message every time your GitHub repo get 10 more stars.
This is a simple example to show how flows.network works when there is a trigger event happens on GitHub then an action gets set off (message sent) in Slack.
To install this Github Star Slack Messenger, we use flows.network, a serverless platform that lets you make a workflow app in three simple steps.
Fork this repo and enter the folder github-star-slack-messenger/src/github-star-slack-messenger.rs/. Replace the parameters in the red boxes below with your GitHub Repo owner and repo name, and then your Slack workspace and channel respectively.
slack-calculator
repo you just forked.Next, flows.network directs you to configure the SaaS integrations required by your flow.
Here we need to configue 2 SaaS integrations.
flows-network-integration
bot on your Slack workspace. The workspace is the parameter you entered at the first step. (Here as can be seen in the screenshot, I already connected the Slack integration)flows-network-integration
bot on the repo that you changed 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 Github Star Slack Messenger goes live. Get updates right away as your GitHub stars increase!
flows.network is still in its early stages. We would love to hear your feedback!
To build locally