Skip to content

Instantly share code, notes, and snippets.

View bshaffer's full-sized avatar

Brent Shaffer bshaffer

View GitHub Profile
@bshaffer
bshaffer / list-services.js
Created November 22, 2022 14:51
list apiary services in JSON format
const { Octokit, App } = require("octokit");
async function run() {
const github = new Octokit();
// fetch tree head and look for /discoveries folder's tree SHA
const {
data: tree
} = await github.rest.git.getTree({
owner: "googleapis",
repo: "discovery-artifact-manager",