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

fix(circle): always prompt for CircleCI API token #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jedwards1211
Copy link
Contributor

fix #277

@jedwards1211
Copy link
Contributor Author

jedwards1211 commented Aug 25, 2019

@gr2m Anything blocking this?

);
process.exit(1); // eslint-disable-line unicorn/no-process-exit
}
},
Copy link
Member

Choose a reason for hiding this comment

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

I don't quite understand how that change relates to the title of the pull request?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

currently it only prompts for the CircleCI API token when info.options['ask-for-passwords'] is truthy. This change removes that and makes sure it will always prompt for the CircleCI API token, regardless of the ask-for-passwords option (which is not used by anything else anymore). As I mentioned in #277, if it doesn't prompt for the CircleCI API token, it fails with a cryptic error following repo on CircleCI! message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks a bunch for getting my PRs merged!

@gr2m
Copy link
Member

gr2m commented Aug 26, 2019

@gr2m Anything blocking this?

The biggest problem with this package is that it does not have a good testing suite, hence we cannot easily accept contributions. Both Pierre and I don't have much time right now, we could really use some help to get the test coverage up.

I don't mind merging the PRs, but it would be really great if you could help us by establishing a test suite so we can move forward faster and with more confidence that we don't break things

@jedwards1211
Copy link
Contributor Author

@gr2m I see -- unit tests with mocks for all the remote services?

@gr2m
Copy link
Member

gr2m commented Oct 6, 2019

Yes, http mocks for the remote services would be great. You can use nock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

since keytar was removed, fails to prompt for CircleCI API token when it should
3 participants