Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/github-repository-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ No modules.
|------|-------------|------|---------|:--------:|
| <a name="input_atlantis_allowed_repo_names"></a> [atlantis\_allowed\_repo\_names](#input\_atlantis\_allowed\_repo\_names) | List of names of repositories which belong to the owner specified in `github_owner` | `list(string)` | n/a | yes |
| <a name="input_create_github_repository_webhook"></a> [create\_github\_repository\_webhook](#input\_create\_github\_repository\_webhook) | Whether to create Github repository webhook for Atlantis | `bool` | `true` | no |
| <a name="input_github_base_url"></a> [github\_base\_url](#input\_github\_base\_url) | Github base URL to use when creating webhook (when using GitHub Enterprise) | `string` | `null` | no |
| <a name="input_github_owner"></a> [github\_owner](#input\_github\_owner) | Github owner to use when creating webhook | `string` | `""` | no |
| <a name="input_github_token"></a> [github\_token](#input\_github\_token) | Github token to use when creating webhook | `string` | `""` | no |
| <a name="input_webhook_secret"></a> [webhook\_secret](#input\_webhook\_secret) | Webhook secret | `string` | `""` | no |
Expand Down
5 changes: 3 additions & 2 deletions modules/github-repository-webhook/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
provider "github" {
token = var.github_token
owner = var.github_owner
base_url = var.github_base_url
token = var.github_token
owner = var.github_owner
}

resource "github_repository_webhook" "this" {
Expand Down
6 changes: 6 additions & 0 deletions modules/github-repository-webhook/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ variable "create_github_repository_webhook" {
default = true
}

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

variable "github_token" {
description = "Github token to use when creating webhook"
type = string
Expand Down