https://github.com/probot/example-azure-function
Probot & Azure Functions example
https://github.com/probot/example-azure-function
Last synced: 10 months ago
JSON representation
Probot & Azure Functions example
- Host: GitHub
- URL: https://github.com/probot/example-azure-function
- Owner: probot
- License: isc
- Created: 2020-12-11T22:37:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T01:30:04.000Z (over 1 year ago)
- Last Synced: 2025-01-29T19:46:41.932Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 396 KB
- Stars: 2
- Watchers: 4
- Forks: 11
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Probot & Azure Functions example
This repository is an example of how to deploy the "Hello, World" of probot apps to [Azure Functions](https://azure.microsoft.com/en-us/services/functions).
## Local setup
```
npm install
npm start
```
Open http://localhost:3000 and follow instructions to register a GitHub App for testing. When done, an `.env` file with your app's credentials will exist.
## Deployment through GitHub Actions
In the Azure Console, navigate to `Function App` -> your app -> `Configuration` and add the environment variables required by Probot
- `APP_ID`
- `PRIVATE_KEY` (you can encode your key value at https://www.base64encode.org/)
- `WEBHOOK_SECRET`
Then in your repository settings, create two secrets:
1. `AZURE_CREDENTIALS`: see https://github.com/azure/login#configure-deployment-credentials for how to retrieve it from the Azure Console.
2. `AZURE_FUNCTION_APP_PUBLISH_PROFILE`: see https://github.com/Azure/functions-action#using-publish-profile-as-deployment-credential-recommended for how to retrieve it from the Azure Console.
## License
[ISC](LICENSE)