npm install
- Run
node getStats.js
NOTE You must have pull access to a repository for this to work correctly.
- Update the
GITHUB_REPOS
values inlocal.settings.json
as needed. - Run
npm start
- Visit the URL displayed in the console.
-
Add the
GITHUB_REPOS
value (see example below) into your key vault as a secret (namedgithub-repos
).[ { "owner": "microsoft", "repo": "MicrosoftCloud", "token": "TOKEN_VALUE" }, { "owner": "microsoft", "repo": "brainstorm-fluidframework-m365-azure", "token": "TOKEN_VALUE" } ]
-
Select the command pallet's
Azure Functions: Deploy to Function App
option. -
Note that if the key vault
GITHUB_REPOS
value is updated, you may need to go into the function configuration in the portal and remove (or add it if it's not there) the last/
. Otherwise, the function may cache the key vault value even after it is restarted.