forked from cloudposse/terraform-github-repository-webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.yaml
78 lines (66 loc) · 2.82 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: terraform-github-repository-webhooks
# License of this project
license: "APACHE2"
# Canonical GitHub repo
github_repo: cloudposse/terraform-github-repository-webhooks
# Short description of this project
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 to display
badges:
- name: "Codefresh Build Status"
image: "https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-github-repository-webhooks?type=cf-1"
url: "https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1bcc1a1bde727a7172235e"
- 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"
# How to use this project
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 = "git::https://github.com/cloudposse/terraform-github-repository-webhooks.git?ref=master"
github_organization = "cloudposse"
github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
github_repositories = ["geodesic"]
webhook_url = "https://atlantis.prod.company.com"
webhook_content_type = "application/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 to this project
contributors:
- name: "Erik Osterman"
github: "osterman"
- name: "Igor Rodionov"
github: "goruha"
- name: "Andriy Knysh"
github: "aknysh"