mirror of
https://github.com/bigchaindb/github-projects.git
synced 2025-01-01 09:37:50 +01:00
switch to /orgs/ endpoint
This commit is contained in:
parent
d8fe56abe2
commit
d09f175ccd
4
index.js
4
index.js
@ -6,7 +6,7 @@ let data = []
|
|||||||
let dataRepos = []
|
let dataRepos = []
|
||||||
let dataReleases = []
|
let dataReleases = []
|
||||||
|
|
||||||
const username = 'bigchaindb'
|
const orgname = 'bigchaindb'
|
||||||
const reponame = 'bigchaindb' // Used for fetching specific release
|
const reponame = 'bigchaindb' // Used for fetching specific release
|
||||||
|
|
||||||
const log = text => console.log(text)
|
const log = text => console.log(text)
|
||||||
@ -32,7 +32,7 @@ const headers = [{
|
|||||||
//
|
//
|
||||||
const fetchRepos = () => {
|
const fetchRepos = () => {
|
||||||
const start = Date.now()
|
const start = Date.now()
|
||||||
const url = 'https://api.github.com/users/' + username + '/repos'
|
const url = 'https://api.github.com/orgs/' + orgname + '/repos'
|
||||||
|
|
||||||
fetch(url, headers)
|
fetch(url, headers)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
Loading…
Reference in New Issue
Block a user