A NodeJS script that fetches the number of participants in a Github pull request.
Warning: as this script uses web scraping on an undocumented page to get the required information, it may break on any Github frontend updates.
To install dev and production dependencies, just launch the following command:
npm install
To configure the Github PR Counter, copy the env file template with:
npm run template
Then, the following configuration environment variables should be filled:
GITHUB_USER
: owner of the repository of the PRGITHUB_REPOSITORY
: name of the repository of the PRGITHUB_PR_NUMBER
: number of the PR in the repository
To start the Github PR Counter, just launch the following command:
npm run start
Two testing suites have been configured to test the script with Mocha. Try it out with:
npm run test
MIT License.
See LICENSE to see the full text.
This script was created in 2022 by Justin Béra.