forked from cloudposse/terraform-github-repository-webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.yaml
55 lines (53 loc) · 2.18 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: terraform-github-repository-webhooks
license: APACHE2
github_repo: cloudposse/terraform-github-repository-webhooks
description: |-
Terraform module to provision webhooks on a set of GitHub repositories.
This is useful if you need to register a webhook en masse across dozens of repositories.
badges:
- name: Latest Release
image: https://img.shields.io/github/release/cloudposse/terraform-github-repository-webhooks.svg
url: https://github.com/cloudposse/terraform-github-repository-webhooks/releases/latest
- name: Slack Community
image: https://slack.cloudposse.com/badge.svg
url: https://slack.cloudposse.com
usage: |-
Create a GitHub Personal Access Token that has `admin:repo_hook` for full control of repository hooks; in otherwords, we need `write:repo_hook` to write repository hooks and `read:repo_hook` to read repository hooks.
For a complete example, see [examples/complete](examples/complete).
```hcl
module "github_webhooks" {
source = "cloudposse/repository-webhooks/github"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
github_organization = "cloudposse"
github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
github_repositories = ["geodesic"]
webhook_url = "https://atlantis.prod.company.com"
webhook_content_type = "json"
events = ["issues"]
}
```
include:
- docs/targets.md
- docs/terraform.md
related:
- name: terraform-aws-cicd
description: Terraform Module for CI/CD with AWS Code Pipeline and Code Build
url: https://github.com/cloudposse/terraform-aws-cicd
- name: terraform-aws-codebuild
description: Terraform Module to easily leverage AWS CodeBuild for Continuous Integration
url: https://github.com/cloudposse/terraform-aws-codebuild
references:
- name: GitHub Event Types
description: The list of supported event types which can trigger a webhook
url: https://developer.github.com/v3/activity/events/types/
- name: GitHub Hook Types
description: The type of the webhooks.
url: https://api.github.com/hooks
contributors:
- name: Erik Osterman
github: osterman
- name: Igor Rodionov
github: goruha
- name: Andriy Knysh
github: aknysh