- 更新
2021-05-23
- 作者
@voluntas
- バージョン
2021.1
- URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from "node-fetch"; // Node.js 18 just remove line | |
const CIRCLECI_TOKEN = process.env.CIRCLECI_TOKEN | |
const ORG_NAME = process.env.ORG_NAME | |
const fetchProjectList = (orgName = ORG_NAME) => { | |
return fetch(`https://circleci.com/api/v2/insights/gh/${orgName}/summary`, { | |
headers: { "Circle-Token": `${CIRCLECI_TOKEN}` } | |
}).then(res => res.json()).then(json => json.all_projects); | |
}; | |
const fetchProjectEnv = (orgName, project) => { |
Head Firstデザインパターン ―頭とからだで覚えるデザインパターンの基本Eric Freeman Elisabeth Freeman Kathy Sierra Bert Bates オライリージャパン 売り上げランキング: 57,159