Skip to content

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

Co-authored-by: Florian Greinacher <florian@greinacher.de>
@Babbafett Babbafett requested a review from fgreinacher April 8, 2022 11:41
@Babbafett Babbafett requested a review from fgreinacher April 8, 2022 16:29
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