Instructions for running on Cloud Functions for Firebase
See original GitHub issueSimilar to https://github.com/probot/probot/issues/149 this framework seems like a great fit for a serverless workload. In fact the code block in the main README
looks very similar to the hello world example for Cloud Functions:
Probot:
module.exports = robot => {
robot.on('issues.opened', async context => {
const issueComment = context.issue({ body: 'Thanks for opening this issue!' })
return context.github.issues.createComment(issueComment)
})
}
Cloud Functions HTTP Example:
exports.myRobotFunction = functions.https.onRequest((req, res) => {
// ...
});
Would you be open to my adding documentation on how to deploy a Probot on Cloud Functions for Firebase in this repository? I assume I’ll have to get around the async/await
issues mentioned in #149 but that’s likely not an impossible hurdle.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:21 (12 by maintainers)
Top Results From Across the Web
Get started: write, test, and deploy your first functions - Firebase
Run firebase login to log in via the browser and authenticate the Firebase CLI. Go to your Firebase project directory. Run firebase init...
Read more >A Practical Approach to Cloud Functions for Firebase: Setup
Cloud Functions for Firebase is a lightweight tool that allows you to run code snippets written in JavaScript or TypeScript for the Node ......
Read more >How-to Guides | Cloud Functions Documentation
Invoke a Cloud Function on a time-based schedule using Cloud Scheduler and a Cloud Pub/Sub trigger. This enables you to set up cron...
Read more >Firebase Cloud Functions: Introduction and Project Setup
Cloud Functions run in response to events inside Google Cloud services, including any Firebase products that you may be using. In other words:....
Read more >Secure Firebase Cloud Functions for Authenticated Users
Next, we run a cloud function that is triggered on the secured node. Firebase will block any updates to a node that is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JasonEtco thanks for the update, that proposed integration looks perfect! I’ll comment if I see anything/
@JasonEtco What I’m hoping we can accomplish with any cloud SDKs is to use inherent knowledge of what’s available in the execution environment to avoid bringing in any dependencies that are already available.
A few examples:
The way I see it working, deploying a Probot serverless function is basically a way to add the GitHub APIs to those platforms, so any Probot function you deploy would be able to talk to GitHub as easily as it talks to other native platform services.