forgejo-terraform-provider/docs/resources/repository_webhook.md
venc0r 4b114faecf feat: add authorization header for webhooks (#69)
Co-authored-by: Jörg Markert <venc0r@live.com>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/69
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: venc0r <venc0r@noreply.gitea.com>
Co-committed-by: venc0r <venc0r@noreply.gitea.com>
2024-07-16 14:36:46 +00:00

1.1 KiB

page_title subcategory description
gitea_repository_webhook Resource - terraform-provider-gitea This resource allows you to create and manage webhooks for repositories.

gitea_repository_webhook (Resource)

This resource allows you to create and manage webhooks for repositories.

Schema

Required

  • active (Boolean) Set webhook to active, e.g. true
  • branch_filter (String) Set branch filter on the webhook, e.g. "*"
  • content_type (String) The content type of the payload. It can be json, or form
  • events (List of String) A list of events that will trigger the webhool, e.g. ["push"]
  • name (String) Repository name
  • type (String) Webhook type, e.g. gitea
  • url (String) Target URL of the webhook
  • username (String) User name or organization name

Optional

  • authorization_header (String) Webhook authorization header
  • secret (String) Webhook secret

Read-Only

  • created_at (String) Webhook creation timestamp
  • id (String) The ID of this resource.