• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Check your ranking in GitHub

Top GitHub Users Action Image of my-profile-views-counter

Image of my-profile-views-counter

Check your rank in GitHub! Get the list of active users in GitHub by country using GitHub Graph API. Go to gayanvoice/top-github-users.

How it works?

The list of countries and the cities are sorted in config.json as an array. The octokit/graphql.js fetches the data from GitHub Graph API. After the fetch is completed, it creates a JSON file by country name in ./cache. The checkpoint.json is used to checkpoint the country.

The action gets the list of users and order it by public contributions, total contributions, and number of followers from cache to generate markdowns, and ranking. The ./docs contains the rankings of total public contirubtions by country.

Don't forget to star ⭐ this repository

Technologies

Setup

1 — Create an empty repository and name the repository as top-github-users.

2 — 🔒 Create a new personal access token with repo workflow admin:org user options

Go to Settings -> Developer settings -> Personal Access Tokens and click on Generate new token button. Give it any name and select repo workflow admin:org -> read:org user -> read:user options and click on Generate token button. ✂️ Copy the token.

3 — 🔑 Create a repository secret

Go to your top-github-users repository -> Settings -> Secrets and click on New repository secret button and enter name as CUSTOM_TOKEN and 📋 paste the personal access token under value. Click on Add secret button.

4 — Go to your top-github-users repository -> Actions and click on set up a workflow yourself link to create a new workflow and paste the below content into yml file. Commit changes.

name: Top GitHub Users
on:
  schedule:
    - cron: '0 * * * *'
  workflow_dispatch:
jobs:
  release:
    name: GitHub Active Users
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/[email protected]
        with:
          ref: ${{ github.head_ref }}
          token: ${{ secrets.CUSTOM_TOKEN }}
      - uses: actions/[email protected]
        with:
          node-version: 14.17.0
      - uses: gayanvoice/top-github-users-action@master
        env:
          CUSTOM_TOKEN: ${{ secrets.CUSTOM_TOKEN }}

5 — Go to your top-github-users repository. Create a JSON file checkpoint.json. Copy the content and paste to the checkpoint.json and commit changes.

{"checkpoint":0}

6 — Go to your top-github-users repository. Create a JSON file config.json. Copy the content and paste to the config.json and commit changes.

{
  "devMode": "false",
  "locations":[
    { "country":  "afghanistan", "geoName": "Afghanistan", "cities": ["kabul", "kandahar", "herat", "Kunduz", "lashkargah", "ghazni", "khost", "zaranj"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Afghanistan.svg" },
    { "country":  "albania", "geoName": "Albania", "cities": ["tirana", "durrës", "vlorë", "elbasan", "shkodër", "kamëz", "fier", "korçë"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg" },
    { "country":  "algeria", "geoName": "Algeria", "cities": ["algiers", "oran", "constantine", "batna", "djelfa", "sétif", "annaba", "sidibelabbès", "biskra", "tiaret"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Algeria.svg" },
    { "country":  "andorra", "geoName": "Andorra", "cities": ["andorra-la-vella", "santa-coloma", "la-margineda", "engolasters"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/1/19/Flag_of_Andorra.svg" },
    { "country":  "angola", "geoName": "Angola", "cities": ["luanda", "cabinda ", "huambo", "lubango ", "kuito", "malanje ", "lobito", "benguela"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/9/9d/Flag_of_Angola.svg" },
    { "country":  "argentina","geoName": "Argentina", "cities": ["buenos-aires", "cordoba", "rosario", "la-plata", "tucumán", "mar-del-plata", "salta", "santa-fe"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/1/1a/Flag_of_Argentina.svg" },
    { "country":  "armenia", "geoName": "Armenia", "cities": ["yerevan", "gyumri", "vanadzor", "vagharshapat", "abovyan "], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/2/2f/Flag_of_Armenia.svg" },
    { "country":  "australia", "geoName": "Australia", "cities": ["sydney", "melbourne", "perth", "adelaide", "brisbane", "canberra", "hobart", "gold-coast", "darwin"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg" },
    { "country":  "austria", "geoName": "Austria", "cities": ["vienna", "salzburg", "innsbruck", "linz", "graz", "klagenfurt", "bregenz", "villach"], "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Austria.svg" }
  ]
}

7 — 📄 Go to your top-github-users repository -> Actions. Select the workflow Top GitHub Users and click on Run workflow button.

Deploy local

1 — Clone this repository to your computer.

2 — Edit index.js 📋 paste the personal access token in AUTH_KEY in https://github.com/gayanvoice/top-github-users-action/blob/master/src/index.js and comment process.env secrets.

    const AUTH_KEY = "ghp_vbmFdybMFCxWzvrgC*************";
    const GITHUB_USERNAME_AND_REPOSITORY = 'gayanvoice/top-github-users';
    // const AUTH_KEY = process.env.CUSTOM_TOKEN;
    // const GITHUB_USERNAME_AND_REPOSITORY = process.env.GITHUB_REPOSITORY;

3 — Run test Run on command line.

npm test

📦 Third party

📄 License

More Repositories

1

top-github-users

Check your ranking in GitHub! Don't forget to star ⭐ this repository.
3,659
star
2

android-vpn-client-ics-openvpn

⭐ Create your Android VPN App by using Android Studio and publish to Google Play Store 🤖
Java
584
star
3

android-animations-kotlin

Awesome library in Kotlin using the view animation system to perform tweened animations on Views based on daimajia/AndroidViewAnimations
Kotlin
158
star
4

android-animations

Perform tweened animations such as Attention, Bounce, Fade, Flip, Rotate, Slide and Zoom on Views
Java
149
star
5

github-profile-views-counter

🚀 Set up this GitHub profile views counter for your profile that does not require any services to record profile views
103
star
6

most-active-github-users-nodejs

List of most active users by country using GitHub based on commits.top of lauripiispanen/most-active-github-users-counter
JavaScript
63
star
7

githubclicks-github-chrome-extension

Navigate through modules, classes, and declarations in GitHub like an IDE
JavaScript
55
star
8

github-insights-template

🚀 Set up this GitHub profile views counter for your profile that does not require any services to record profile views
48
star
9

openvpn-install-for-multiple-users

Share your OpenVPN server with multiple users on Debian, Ubuntu, and CentOS based on Nyr/openvpn-install
Shell
38
star
10

github-profile-views-counter-action

GitHub Action for setting up insights of your repositories on your workflow without using any third-party apps.
JavaScript
25
star
11

my-profile-views-counter

22
star
12

github-insights

GitHub Action for setting up insights of your repositories on your workflow without using any third-party apps.
JavaScript
17
star
13

remote-config

A remote library to config variables, appearance and behavior of your app without publishing an app update
Java
16
star
14

android-layout-transitions-kotlin

Transition easing-functions for Android Layouts in Kotlin
Kotlin
10
star
15

react-native-apps

A collection of React Native apps in Expo + TypeScript
TypeScript
6
star
16

insights

4
star
17

twitter-bot-java

witter-bot-java (Twitter Bot Java) is an automated bot written in Java based on Spring framework
Java
3
star
18

convert-website-to-android-app

Kotlin
3
star
19

githubstats-asp-net-core

C#
2
star
20

asp-net-core-simple-web-app

C#
2
star
21

node-chart-exec

An executable binary for creating charts in Node.js
JavaScript
2
star
22

cobot-iot-to-adt-ingestion-function-app

C#
1
star
23

WaleAirlineCompany

HTML
1
star
24

100638182-Cobot-ADT-TwinOfTwin-EventGrid-Function-App

C#
1
star
25

100638182-Cobot-IoT-Command-Function-App

C#
1
star
26

100638182-Cobot-ADT-NoSQL-EventGrid-Function-App

C#
1
star
27

100638182-IOT-App

Java
1
star
28

library-system-spring

HTML
1
star
29

tensorflowhub-retrain.py

Using TensorFlow hub to retrain a data set and testing
Python
1
star
30

english-news-sri-lanka

Java
1
star
31

MCB-Status-Manager

C#
1
star
32

javascript-action

JavaScript Action makes it easy to commit all your changes to repository with CI/CD.
JavaScript
1
star
33

lanka-news-app

Java
1
star
34

100638182-Cobot-Client-App

Python CL app for the device to handle Cobot IoT ingestions
Python
1
star
35

addqual-cobot-calibration-app

Python
1
star
36

100638182-Iot-Ingestion-Function-App

C#
1
star
37

gayanvoice

1
star
38

asp-net-core-web-app

This guide walks you through the process of deploying an ASP.NET Core 3.1 web app to IBM Cloud Foundry
HTML
1
star
39

DjangoApp

Python
1
star
40

SAASystem

C#
1
star
41

addqual-adt-command-event-function-app

C#
1
star
42

100638182-Adt-Ingestion-Function-App

C#
1
star
43

volley-kotlin

Volley-Kotlin is the Kotlin implementation of Google Volley HTTP library
Java
1
star
44

pizza-planet-web-app

C#
1
star
45

100638182-Cobot-ADT-Ingestion-Function-App

C#
1
star
46

100638182-Cobot-ADT-Initialize-Function-App

C#
1
star
47

100638182-Cobot-Web-App

HTML
1
star
48

CobotBasicProject

Python
1
star
49

ur-cobot-10e-and-robotiq-gripper-python

Control your UR Cobot 10e and Robotiq Gripper using Pure Python, Not UR Script!
Python
1
star
50

addqual-adt-twin-event-function-app

C#
1
star
51

AirlineCompany

HTML
1
star
52

ini-reader

How to read and write .ini files in Windows Operating System in C++ Visual Studio
C++
1
star
53

ASystem

Database Assignment (User - Staff/Management/Admin Pw-1234)
C#
1
star