diff --git a/boards/boards.json b/boards/boards.json index 102be4d..56fe690 100644 --- a/boards/boards.json +++ b/boards/boards.json @@ -16,14 +16,6 @@ } ] }, - "7q78sWW2": { - "github_links": [ - { - "display": "eShop repo", - "url": "https://github.com/PretendoNetwork/Grove" - } - ] - }, "lmAbWUyn": { "github_links": [ { diff --git a/src/trello.js b/src/trello.js index 50c2827..bd671b5 100644 --- a/src/trello.js +++ b/src/trello.js @@ -3,6 +3,7 @@ const got = require('got'); const config = require('../config.json'); const trello = new Trello(config.trello.api_key, config.trello.api_token); +const VALID_LIST_NAMES = ['Not Started', 'Started', 'Completed']; let cache; async function getTrelloCache() { @@ -49,6 +50,14 @@ async function updateTrelloCache() { meta.id = board.shortLink; const lists = await trello.getListsOnBoard(board.id); + + const listNames = lists.map(list => list.name); + const hasAllValidLists = listNames.every(name => VALID_LIST_NAMES.includes(name)); + + if (!hasAllValidLists) { + continue; + } + const cards = await trello.getCardsOnBoard(board.id); for (const card of cards) {