Skip to content

feat: Add base URL for GitHub Enterprise #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

DoomHammer
Copy link
Contributor

Description

Add base URL for use with GitHub Enterprise.

Motivation and Context

Currently, the only way to use the module with GItHub Enterprise is via injecting the provider configuration. However, in recent versions of Terraform, terraform validate will treat it as an error. Adding a variable solves this issue.

Breaking Changes

No known.

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

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

LGTM, but just a minor comment.

variable "github_base_url" {
description = "Github base URL to use when creating webhook (when using GitHub Enterprise)"
type = string
default = ""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
default = ""
default = null

Accoding to the docs for base_url it is optional, so it should be null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, sorry about that and thanks for suggestion!

Copy link
Member

Choose a reason for hiding this comment

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

Also, please fix the docs (to make CI green).

@antonbabenko antonbabenko merged commit 4195ea2 into terraform-aws-modules:master Jan 17, 2022
antonbabenko pushed a commit that referenced this pull request Jan 17, 2022
## [3.7.0](v3.6.0...v3.7.0) (2022-01-17)

### Features

* Add base URL for GitHub Enterprise ([#244](#244)) ([4195ea2](4195ea2))
@antonbabenko
Copy link
Member

This PR is included in version 3.7.0 🎉

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants