Coder Social home page Coder Social logo

Comments (10)

eunjae-lee avatar eunjae-lee commented on May 23, 2024 1

If that's the cause, I think these three lines should change:

There can be a config for that like

// ship.config.js

module.exports = {
  githubHost: 'my-own-gh-enterprise.com'
};

What do you think? Would you be interested in contributing?

from shipjs.

eunjae-lee avatar eunjae-lee commented on May 23, 2024

Hello @swaprenge
Thanks for trying out Ship.js. Do you have GITHUB_TOKEN environment variable in .env file? I do not have experience with GH Enterprise account. It'd be much helpful if you could provide screenshots or error messages if any.

Or, you could have a cron job in the GitHub Action to run yarn run release periodically (like every week). Then I guess GH Action will take care of the authentication process as well. But you may want to run yarn run release manually. So I'd appreciate if you could provide more information. Thanks!

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

Hi @eunjae-lee Thanks for your reply. I have setup GITHUB_TOKEN in .env file (Checking the Github token step is successful) and I am attaching the screenshot of the error I am getting.
shipjs error

Let me know if you need any other details.
Thanks.

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

github signing_shipjs

From the above image, You will get that, I have been asked to do the SignIn using the Github, but it should ask for Github enterprise SignIn, as my repository is in the Enterprise account. I am not sure how can i SignIn using the Enterprise account.

from shipjs.

eunjae-lee avatar eunjae-lee commented on May 23, 2024

Hi @swaprenge, first of all, I have no experience with GH enterprise, so I've never seen that sign-in page. So I may be wrong on what I'm talking about.

On your first screenshot I see

fatal: repository 'https://github.com/FactSet/pw-systemtools-config-dashboard/' not found

I assume.. the domain is not github.com but something of your company's, right?
Do you think if it tries to push to the correct origin, you'll see the correct sign-in page?

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

If that's the cause, I think these three lines should change:

There can be a config for that like

// ship.config.js

module.exports = {
  githubHost: 'my-own-gh-enterprise.com'
};

What do you think? Would you be interested in contributing?

@eunjae-lee I think these suggested changes will be required to support the enterprise host.
And yeah, I would love to contribute. I Will raise a PR by making the changes.

Thanks.

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

Hi @swaprenge, first of all, I have no experience with GH enterprise, so I've never seen that sign-in page. So I may be wrong on what I'm talking about.

On your first screenshot I see

fatal: repository 'https://github.com/FactSet/pw-systemtools-config-dashboard/' not found

I assume.. the domain is not github.com but something of your company's, right? Do you think if it tries to push to the correct origin, you'll see the correct sign-in page?

Yeah, If we push to the correct origin (i,e GitHub enterprise in my case) then we might see the correct sign-in page.

from shipjs.

eunjae-lee avatar eunjae-lee commented on May 23, 2024

Thanks for the contribution @swaprenge :) I'll wait for your PR then.

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

@eunjae-lee apologies for the late, I was trying to make the above changes, but not sure about how to access githubHost defined in ship.config.js in files to replace hard-coded github.com
Can you please help me to do these changes?

Thanks.

from shipjs.

swaprenge avatar swaprenge commented on May 23, 2024

I think I got it, We need to use the loadConfig function to get config values, Will try to use it and will update,
@eunjae-lee I am trying to push the PR, but getting permission denied.

MicrosoftTeams-image (2)

PS: I ran yarn contributors:add command as well.

from shipjs.

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.