wowa icon indicating copy to clipboard operation
wowa copied to clipboard

github private repositories

Open gmillerd opened this issue 5 years ago • 2 comments

Hello, fabulous tool thanks.

Does wowa support private repositories? I am having issues getting this to work.

I am able to clone natively with 'git clone' (my .git-credentials works), I have altered wowa/source/github.js to expose that my process.env.GITHUB_TOKEN is being passed (it is).

Everything in wowa/source/github.js seems to work, its when 'done(d)' is called that master.zip isn't authorized. In ok.git:L81 the output of console.log(d) is the following

wowa install redacted/addon
⠇ redacted/addon [github] waiting...
done { name: 'addon',
  owner: 'redacted',
  author: 'redacted',
  page: 'https://github.com/redacted/addon',
  version:
   [ { name: '7667e48',
       link:
        'https://github.com/redacted/addon/archive/master.zip' } ],
  ↓ redacted/addon @7667e48 [github] HTTPError: Response code 404 (Not Found) [skipped]

Thanks!

gmillerd avatar Oct 22 '20 03:10 gmillerd

I see one possible way is to install private github repo as an arbitrary git repo. In order to install as an arbitrary git repo, you'll need to disable the github source in code:

diff --git a/source/index.js b/source/index.js
index 78171e3..b454685 100644
--- a/source/index.js
+++ b/source/index.js
@@ -12,7 +12,7 @@ let src = {
     curse: require('./curse'),
     mmoui: require('./mmoui'),
     tukui: require('./tukui'),
-    github: require('./github'),
+    // github: require('./github'),
     git: require('./git')
   },

antiwinter avatar Oct 23 '20 16:10 antiwinter

But the best way is to make your addon public :)

antiwinter avatar Oct 23 '20 16:10 antiwinter