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

feat: Support using a proxy to access the signing API #571

Merged
merged 11 commits into from
Oct 12, 2016

Conversation

berraknil
Copy link
Contributor

Fixes #345

I started to work on this but not sure if I'm missing anything, so decided to make the pull request to see if it's working for everyone else like it's supposed to.

@coveralls
Copy link

coveralls commented Oct 11, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 1ee0700 on berraknil:master into 8e4e657 on mozilla:master.

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

This looks great and it's working (I tested it out) ! I requested a small change to the help text.

@@ -159,11 +159,6 @@ If you want to use scopes then it would look more like:
The commit message formatting described above is automatically enforced
each time you commit to your work branch to make continuous integration smoother.

**If you're on Windows**, the commit message verification currently doesn't
Copy link
Contributor

Choose a reason for hiding this comment

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

These changes were merged to master in c0dc674 \o/ If you pull changes from master and push those changes to your fork of the repository then they won't appear in this 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.

Sorry about that fixing it!! 👍

@@ -210,6 +210,11 @@ Example: $0 --help run.
demand: true,
type: 'string',
},
'api-proxy': {
describe: 'Use a proxy to access the signing API',
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add another sentence to this: "Example: https://yourproxy:6000"

This will help people understand what kind of value they would need to pass to this option.

@berraknil
Copy link
Contributor Author

Made the requested changes but not sure why checks are failing, any pointers? Thank you!

@kumar303
Copy link
Contributor

The test failure is because the code has trailing whitespace on line 214 of src/program.js. We disallow this because it makes diffs harder to read when reviewing code. You should be able to configure your editor to automatically strip white space. I'm not sure what editor you use but, just for example, if you used Vim you could search for a fix like this.

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

Looks good! Let me know if you have any other questions about getting the tests to pass.

@@ -210,6 +210,13 @@ Example: $0 --help run.
demand: true,
type: 'string',
},
'api-proxy': {
describe:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is the line with some white space at the end of it. Try deleting everything after describe:.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I turned off Eslint earlier today then forgot to turn it on, so didn't even notice the white space. All fixed now, thanks for your patience!

@coveralls
Copy link

coveralls commented Oct 12, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 50154a3 on berraknil:master into 4724063 on mozilla:master.

@coveralls
Copy link

coveralls commented Oct 12, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 85fd1cc on berraknil:master into 4724063 on mozilla:master.

@berraknil
Copy link
Contributor Author

I'm sorry but I don't know what else to do, Travis CI keeps failing due to earlier upstream merge it seems, should I close this pr and open a new one I don't know.

@kumar303
Copy link
Contributor

Everything looks great, thanks again! I'll merge it in. The last error in the test suite is because of a formatting problem with one of your older commits. It's a confusing error message though. Also, it's hard to fix because you need to rewrite the git history in your branch. Don't worry, I know it's not broken so you don't have to fix it :)

I actually prevented this error from happening but I think you cloned the repo before I fixed it. When you get a chance, run npm install in your web-ext source to get the latest fixes. You should run this anytime after you pull changes from master too.

@kumar303 kumar303 merged commit a853e4d into mozilla:master Oct 12, 2016
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.

4 participants