GitHub Popular Searches

Made by Vinit Shahdeo Powered By


██████╗  ██████╗ ███████╗████████╗███╗   ███╗ █████╗ ███╗   ██╗
██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝████╗ ████║██╔══██╗████╗  ██║
██████╔╝██║   ██║███████╗   ██║   ██╔████╔██║███████║██╔██╗ ██║
██╔═══╝ ██║   ██║╚════██║   ██║   ██║╚██╔╝██║██╔══██║██║╚██╗██║
██║     ╚██████╔╝███████║   ██║   ██║ ╚═╝ ██║██║  ██║██║ ╚████║
╚═╝      ╚═════╝ ╚══════╝   ╚═╝   ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝
                                                               
                                                     

This collection is published here.

How does it work?

Run in Postman

Set the following environment variables before you run this collection :

It sends the popular repository on Slack channel using webhook.

This collection uses Github API to fetch comments and sends a report to an internal Slack channel using a webhook.

API Calls made

Thanks

GET npm search - API call to NPM to fetch the popular GitHub Repositories for a given search query.

http://registry.npmjs.com/-/v1/search?text=searchTerm&size=maxSize

GET fetch comments - Fetching comments for each repositories using GitHub API.

https://api.github.com/repos/userName/repoName/comments  

POST calculate sentiments - Calculating sentiment using ParallelDots API for the comments of given GitHub repository.

https://apis.paralleldots.com/v3/sentiment?text=sentimentText&api_key=API_KEY

POST push to slack - Pushing most popular repos to Slack using webhook.

https://hooks.slack.com/services/XXXXXXXXX

Thanks!

Glad to see you here! I’m social. Let’s get connected.