mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
add dummy data
This commit is contained in:
parent
7c743629c6
commit
0911ec90fb
2 changed files with 1901 additions and 4 deletions
1896
data/dummy/githubroadmap.php
Normal file
1896
data/dummy/githubroadmap.php
Normal file
File diff suppressed because it is too large
Load diff
9
lib/thirdparty/Github.class.php
vendored
9
lib/thirdparty/Github.class.php
vendored
|
@ -100,10 +100,11 @@ class Github
|
||||||
|
|
||||||
public static function listRoadmapItems($cache = true)
|
public static function listRoadmapItems($cache = true)
|
||||||
{
|
{
|
||||||
// echo '<pre>';
|
$apiResponse = IS_PRODUCTION ?
|
||||||
// print_r(static::get('/repos/lbryio/internal-issues/issues?labels=2019&filter=all'));
|
static::get('/repos/lbryio/internal-issues/issues?labels=2019&filter=all') :
|
||||||
// die('a');
|
include ROOT_DIR . '/data/dummy/githubroadmap.php';
|
||||||
$issues = array_reduce(static::get('/repos/lbryio/internal-issues/issues?labels=2019&filter=all'), function($issues, $issue) {
|
|
||||||
|
$issues = array_reduce($apiResponse, function($issues, $issue) {
|
||||||
return array_merge($issues, [[
|
return array_merge($issues, [[
|
||||||
'name' => $issue['title'],
|
'name' => $issue['title'],
|
||||||
'quarter_date' => array_reduce($issue['labels'], function($carry, $label) {
|
'quarter_date' => array_reduce($issue['labels'], function($carry, $label) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue