Skip to content

Allow config-based overrides of github server hostname#449

Open
benjaminbradley wants to merge 1 commit into
pantheon-systems:3.xfrom
benjaminbradley:448-private-github-servers
Open

Allow config-based overrides of github server hostname#449
benjaminbradley wants to merge 1 commit into
pantheon-systems:3.xfrom
benjaminbradley:448-private-github-servers

Conversation

@benjaminbradley
Copy link
Copy Markdown

No description provided.

public function __construct(Config $config)
{
parent::__construct($config);
$privateGithub = $this->config->get('build-tools.provider.git.github.url');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @benjaminbradley

This looks great, but there's an underlying issue that makes this not work with env vars as described in this PR: #187

Could you please update this line to be:

        $privateGithub = $this->config->get('build-tools.provider.git.github.url') ?? getenv('TERMINUS_BUILD_TOOLS_PROVIDER_GIT_GITHUB_URL') ?? null;

so that this env var (TERMINUS_BUILD_TOOLS_PROVIDER_GIT_GITHUB_URL) can be used to override this behavior easily in CI?

Thanks!

Once merged, I'll create a follow-up PR to set that var when creating a project from scratch and I will probably request help to test it, it would be great if you can help with that at that time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants