Giter Site home page Giter Site logo

github-pr-counter's Introduction

GITHUB PR COUNTER

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.

Installion of dependencies

To install dev and production dependencies, just launch the following command:

npm install

Configuration

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 PR
  • GITHUB_REPOSITORY: name of the repository of the PR
  • GITHUB_PR_NUMBER: number of the PR in the repository

Launching the script

To start the Github PR Counter, just launch the following command:

npm run start

Tests

Two testing suites have been configured to test the script with Mocha. Try it out with:

npm run test

See Also

Licensing

MIT License.

See LICENSE to see the full text.

Author Information

This script was created in 2022 by Justin Béra.

github-pr-counter's People

Contributors

just1not2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.