File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 1+ REPO_OWNER="Git-Commit-Show"
2+ GITHUB_PERSONAL_TOKEN="ghp_adsfdsf32sdfasdfcdcsdfsdf23sfasdf1"
Original file line number Diff line number Diff line change 55
66const https = require ( 'https' ) ;
77
8- //INPUTS
9- const REPO_OWNER = "Git-Commit-Show" ; //Change this to the repo that you
10- const GITHUB_PERSONAL_TOKEN = "" ; //When used, it will increase the API limits from 60 to 5000/hr
11- //End of inputs
8+ // INPUTS
9+ // Mandatory: Repo owner that you want to analyze
10+ const REPO_OWNER = process . env . REPO_OWNER ;
11+ // Optional: Authentication using github token. When used, it will increase the API limits from 60 to 5000/hr
12+ const GITHUB_PERSONAL_TOKEN = process . env . GITHUB_PERSONAL_TOKEN ;
13+ // END OF INPUTS
1214
1315const GITHUB_REQUEST_OPTIONS = {
1416 headers : {
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " github-contributors" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " Analyze and archive GitHub repo contributors" ,
5+ "main" : " contributors.js" ,
6+ "scripts" : {
7+ "test" : " echo \" Error: no test specified\" && exit 1"
8+ },
9+ "repository" : {
10+ "type" : " git" ,
11+ "url" : " git+https://github.com/gitcommitshow/github-contributors.git"
12+ },
13+ "keywords" : [
14+ " opensource-analytics" ,
15+ " github-contributions" ,
16+ " opensource-analytics" ,
17+ " opensource-management" ,
18+ " community-management" ,
19+ " community-recognition" ,
20+ " recognition" ,
21+ " contributors" ,
22+ " contributions"
23+ ],
24+ "author" : " gitcommitshow" ,
25+ "license" : " MIT" ,
26+ "bugs" : {
27+ "url" : " https://github.com/gitcommitshow/github-contributors/issues"
28+ },
29+ "homepage" : " https://github.com/gitcommitshow/github-contributors#readme" ,
30+ "publishConfig" : {
31+ "registry" : " https://npm.pkg.github.com"
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments