From 9bf90c953484772cdb9f7523f59843841d7a2b30 Mon Sep 17 00:00:00 2001 From: warits Date: Mon, 16 Sep 2019 10:17:04 +0800 Subject: [PATCH] debug ci, github api cannot past test on macos --- README.md | 2 +- source/github.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9431c5b..b965e6d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![npm](https://img.shields.io/npm/l/wowa.svg)](https://github.com/antiwinter/wowa/blob/master/LICENSE) [![install size](https://packagephobia.now.sh/badge?p=wowa)](https://packagephobia.now.sh/result?p=wowa) -**Recent important updates** +**Recent Notice** - Now `ls` only prints short message, if you want detailed message, use `wowa ls -l` - Add support for [TukUI](https://tukui.org). `wowa add 0-tukui`, `wowa search tukui:elvui` diff --git a/source/github.js b/source/github.js index 837f590..c4ac255 100644 --- a/source/github.js +++ b/source/github.js @@ -30,8 +30,9 @@ let api = { let h = ad.branch ? ok.repos.getBranch({ owner, repo, branch: ad.branch }) : ok.repos.listTags({ owner, repo }) - h.then(({ data }) => { - // log('got dat', JSON.stringify(data, null, 2)) + h.then(err => { + log('got dat', JSON.stringify(err, null, 2)) + let data = err.data let d = { name: repo, owner,