Skip to content

A GitHub bot to sync shared code between repositories

License

Notifications You must be signed in to change notification settings

MaheraFurniturewala/micro-git-service

Repository files navigation

Probot & Vercel example

This repository is an example of how to deploy the "Hello, World" of probot apps to Vercel.

Local setup

Install dependencies

npm install

Start the server

npm start

Follow the instructions to register a new GitHub app.

Deployment

The app is continuously deployed using Vercel's GitHub app.

Considerations

  • Make sure you configure the environment variables for your GitHub App in Vercel. You can read more about how to do it in their docs.
  • Vercel expects to find your lambda functions under /api folder. Make sure your functions are placed there and double check Vercel detected your Lambda Functions during the deployment process by checking the logs:

image

How it works

The api/github/webhooks/index.js file is handling requests to POST /api/github/webhooks, make sure to configure your GitHub App registration's webhook URL accordingly.

Other examples1

License

ISC

Footnotes

  1. Do you have any other examples you would like to share? Feel free to open a Pull Request and share yours!

About

A GitHub bot to sync shared code between repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published