aio-cli icon indicating copy to clipboard operation
aio-cli copied to clipboard

Customizable `baseUrl` on quickstarts

Open obarcelonap opened this issue 1 year ago • 0 comments

Expected Behaviour

To be able to set the baseUrl when using quickstar flags in aio app init so repositories out of public github can be used.

aio app init --repo org/repo/folder --baseUrl https://mygit.com

Actual Behaviour

--repo option always uses github.com

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Current implementation uses Octokit that defaults to github.com https://github.com/adobe/aio-cli-plugin-app/blob/master/src/commands/app/init.js#L375-L378

While Octokit allows to customize the baseUrl with a constructor arg https://github.com/octokit/octokit.js/blob/main/README.md?plain=1#L184-L203

Logs taken while reproducing problem

obarcelonap avatar Nov 26 '24 10:11 obarcelonap