Giter VIP home page Giter VIP logo

Comments (3)

miguelmich avatar miguelmich commented on May 28, 2024

Hello @renato-bohler, thanks for your support! I see... we're using this lib as a base to make the API requests: https://github.com/jira-node/node-jira-client and in this case, I think you should make the API calls through your proxy, but I'm afraid that this lib doesn't support it currently: jira-node/node-jira-client#92

from jira-cli.

renato-bohler avatar renato-bohler commented on May 28, 2024

They don't support proxy officially, but they use request (from request-promise) which does support proxy.

Fortunately, we could pass the request parameter as an option to node-jira-client: see jira.js at line 25.

In fact, I've forked this repo and made I work through proxy. I know this is not the best solution to the problem, but here's what I've done:

  • add the dependency request-response;
  • check for a proxy key on the config file;
  • mount and pass a proxied request to connect to node-jira-client if that key is set.

Here's the commit on the fork: renato-bohler@7353596.

I'm willing to add an extra config option to set the proxy via CLI and I can submit a PR if you think that's ok.

from jira-cli.

miguelmich avatar miguelmich commented on May 28, 2024

that's awesome, sure a PR would be great!

Thanks @renato-bohler :)

from jira-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.