citra-emu
/
citra-web
Archived
1
0
Fork 0

Updated games folder to reflect changes in citra-games-wiki a4faaa9. Updated maximum number of Github bug pages are searched.

This commit is contained in:
chris062689 2017-07-28 22:23:07 -04:00
parent 32fa5954f4
commit 1b896d8673
1 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ const blackfriday = require('./blackfriday.js');
const del = require('delete');
const exec = require('sync-exec');
const fsPathCode = './citra-games-wiki';
const fsPathCode = './citra-games-wiki/games';
const fsPathWiki = './citra-games-wiki.wiki';
const fsPathHugoContent = '../../site/content/game';
const fsPathHugoBoxart = '../../site/static/images/game/boxart';
@ -42,8 +42,8 @@ function getDirectories (srcpath) {
async function getGithubIssues() {
var results = [];
// Force the while loop out after 10 calls.
for (var page = 0; page <= 3; page++) {
// Only loop through the first x pages to prevent API limiting.
for (var page = 0; page <= 15; page++) {
let options = {
url: `https://api.github.com/repos/citra-emu/citra/issues?per_page=99&page=${page}`,
headers: { 'User-Agent': 'citrabot' }
@ -65,10 +65,10 @@ async function getGithubIssues() {
}
// Fetch game information stored in Github repository.
gitPull(fsPathCode, 'https://github.com/citra-emu/citra-games-wiki.git');
gitPull('./citra-games-wiki', 'https://github.com/citra-emu/citra-games-wiki.git');
// Fetch game articles stored in Github wiki.
gitPull(fsPathWiki, 'https://github.com/citra-emu/citra-games-wiki.wiki.git');
gitPull('./citra-games-wiki.wiki', 'https://github.com/citra-emu/citra-games-wiki.wiki.git');
// Fetch all issues from Github.
var githubIssues = null;