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: add support for NO_PROXY #359

Merged
merged 10 commits into from
Apr 11, 2022
Merged

feat: add support for NO_PROXY #359

merged 10 commits into from
Apr 11, 2022

Conversation

Babbafett
Copy link
Contributor

@Babbafett Babbafett commented Apr 7, 2022

Please check if the MR fulfills these requirements

  • the commit message follows conventional commits
  • all required tests for the changes have been added
  • docs have been added in readme

What kind of change does this MR introduce?

  • Add NO_PROXY environment variable support

What is the current behavior?

  • NO_PROXY environment variables is completely ignored

What is the new behavior (if this is a feature change)?

  • NO_PROXY environment variables can be used to bypass the proxy configuration via HTTPS_PROXY and/or HTTP_PROXY envrionment variables

Does this MR introduce a breaking change?

No

Other information

In some cases it requires a web proxy to reach resources through the internet and outside of a company network. This will work when the gitlab Instance is also accessible through the internet, but in some cases the gitlab instance is a self hosted one and is only be reachable within the same network.
In case of that you need a proxy configuration (e.g. through HTTP_PROXY and/or HTTPS_PROXY for your build process with @semantic-release/exec) it would fail to reach the gitlab instance as a combination of proxy and no_proxy is not possible at the moment.
This PR will introduce this option to allow a combination of having HTTP_PROXY/HTTPS_PROXY and NO_PROXY environment variables

Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

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

Tanks @Babbafett, I left some comments.

Also I guess you want to format the code: npm run lint -- --fix

lib/resolve-config.js Outdated Show resolved Hide resolved
lib/resolve-config.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Florian Greinacher <florian@greinacher.de>
lib/resolve-config.js Outdated Show resolved Hide resolved
Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

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

Looking great now, thanks for your work @Babbafett!

@fgreinacher fgreinacher changed the title Add NO_PROXY bypass proxy configuration feat: add no_proxy option Apr 9, 2022
@fgreinacher fgreinacher changed the title feat: add no_proxy option feat: add support for NO_PROXY Apr 9, 2022
@fgreinacher fgreinacher merged commit 3051799 into semantic-release:master Apr 11, 2022
@github-actions
Copy link

🎉 This PR is included in version 9.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

hvanoch pushed a commit to hvanoch/semantic-release-gitlab that referenced this pull request Apr 14, 2022
Co-authored-by: Florian Greinacher <florian@greinacher.de>
Co-authored-by: Julian Beisert <julianbeisert@googlemail.com>
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.

2 participants