Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement github authentication helper #547

Merged
merged 9 commits into from
Mar 11, 2019
Merged

Implement github authentication helper #547

merged 9 commits into from
Mar 11, 2019

Conversation

tripodsan
Copy link
Contributor

@tripodsan tripodsan commented Feb 14, 2019

see #380, see #579

NOTE: The name the testZAuthCmd.js file is choosen in such a way that tests are executed after the replay tests in testPublishCmd.js. it seems impossible to re-init replay after nock
messed with the http request classes.

@trieloff
Copy link
Contributor

This pull request introduces 1 alert when merging 97c9020 into b338328 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Comment posted by LGTM.com

@codecov
Copy link

codecov bot commented Feb 27, 2019

Codecov Report

Merging #547 into master will increase coverage by 0.06%.
The diff coverage is 86.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #547      +/-   ##
==========================================
+ Coverage   85.61%   85.68%   +0.06%     
==========================================
  Files          38       41       +3     
  Lines        1933     2102     +169     
  Branches      284      305      +21     
==========================================
+ Hits         1655     1801     +146     
- Misses        278      301      +23
Impacted Files Coverage Δ
src/cli.js 73.07% <ø> (ø) ⬆️
src/cli-util.js 76.92% <74.28%> (-23.08%) ⬇️
src/auth.js 81.81% <81.81%> (ø)
src/auth-login-server.js 86.53% <86.53%> (ø)
src/auth.cmd.js 92.95% <92.95%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02b16ea...176afdf. Read the comment docs.

@tripodsan tripodsan changed the title [WIP] prototype for github authentication prototype for github authentication Feb 27, 2019
@tripodsan tripodsan changed the title prototype for github authentication Implement github authentication helper Feb 27, 2019
const packagejson = require('../package.json');

function getVersion() {
return packagejson.version;
}

const spinnerFrames = process.platform === 'win32'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really a platform dependency or a terminal dependency, i.e. we can assume UTF-8 support when $TERM=xterm?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't know :-) I copy pasted it from somewhere. but let me try it out....

Copy link
Contributor Author

@tripodsan tripodsan Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in command prompt, the spinner doesn't work

image

in hyper terminal, it works:

image

Copy link
Contributor Author

@tripodsan tripodsan Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently this is a known problem. https://github.com/sindresorhus/figures
I'd stick to the distinction for now.

@tripodsan tripodsan merged commit 1a8d078 into master Mar 11, 2019
@tripodsan tripodsan deleted the auth branch March 11, 2019 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants