mirror of
https://github.com/bigchaindb/github-projects.git
synced 2024-12-29 16:17:49 +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 dataReleases = []
|
||||
|
||||
const username = 'bigchaindb'
|
||||
const orgname = 'bigchaindb'
|
||||
const reponame = 'bigchaindb' // Used for fetching specific release
|
||||
|
||||
const log = text => console.log(text)
|
||||
@ -32,7 +32,7 @@ const headers = [{
|
||||
//
|
||||
const fetchRepos = () => {
|
||||
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)
|
||||
.then(res => {
|
||||
|
Loading…
Reference in New Issue
Block a user