This code depends on two environment variables.
AdvocatesAPI
which is a URL to the list of advocates created by this repository.GitToken
which can be created here and ensuring that the scopepublic_repo
andread:user
are set.
Sample local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "node",
"AdvocatesAPI": "https://advocateslistservice.azurewebsites.net/api/DashboardAdvocates",
"GitToken": "ghp_..."
}
}
You can right click publish this repository to any Azure Functions using Node 14 LTS. Ensure to have the two environment variables set properly to ensure it works correctly.