Skip to content

Commit 63e7aee

Browse files
authored
Only use a single list of required_providers (#22)
1 parent 58c5518 commit 63e7aee

File tree

5 files changed

+49
-71
lines changed

5 files changed

+49
-71
lines changed

README.md

Lines changed: 44 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
<!--
2-
3-
4-
5-
6-
7-
1+
# terraform-github-repository-webhooks
82

3+
[![Codefresh Build Status](https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-github-repository-webhooks?type=cf-1)](https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1bcc1a1bde727a7172235e) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-github-repository-webhooks.svg)](https://github.com/cloudposse/terraform-github-repository-webhooks/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
94

5+
[![README Header][readme_header_img]][readme_header_link]
106

7+
[![Cloud Posse][logo]](https://cpco.io/homepage)
118

9+
<!--
1210
1311
1412
1513
1614
** DO NOT EDIT THIS FILE
17-
**
18-
** This file was automatically generated by the `build-harness`.
19-
** 1) Make all changes to `README.yaml`
15+
**
16+
** This file was automatically generated by the `build-harness`.
17+
** 1) Make all changes to `README.yaml`
2018
** 2) Run `make init` (you only need to do this once)
21-
** 3) Run`make readme` to rebuild this file.
19+
** 3) Run`make readme` to rebuild this file.
2220
**
2321
** (We maintain HUNDREDS of open source projects. This is how we maintain our sanity.)
2422
**
@@ -27,33 +25,15 @@
2725
2826
2927
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
-->
41-
[![README Header][readme_header_img]][readme_header_link]
42-
43-
[![Cloud Posse][logo]](https://cpco.io/homepage)
44-
45-
# terraform-github-repository-webhooks
46-
47-
[![Codefresh Build Status](https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-github-repository-webhooks?type=cf-1)](https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1bcc1a1bde727a7172235e) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-github-repository-webhooks.svg)](https://github.com/cloudposse/terraform-github-repository-webhooks/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
48-
28+
-->
4929

5030
Terraform module to provision webhooks on a set of GitHub repositories.
5131
This is useful if you need to register a webhook en masse across dozens of repositories.
5232

5333

5434
---
5535

56-
This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
36+
This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
5737
[<img align="right" title="Share via Email" src="https://docs.cloudposse.com/images/ionicons/ios-email-outline-2.0.1-16x16-999999.svg"/>][share_email]
5838
[<img align="right" title="Share on Google+" src="https://docs.cloudposse.com/images/ionicons/social-googleplus-outline-2.0.1-16x16-999999.svg" />][share_googleplus]
5939
[<img align="right" title="Share on Facebook" src="https://docs.cloudposse.com/images/ionicons/social-facebook-outline-2.0.1-16x16-999999.svg" />][share_facebook]
@@ -74,7 +54,7 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).
7454

7555

7656

77-
We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
57+
We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
7858

7959

8060

@@ -110,8 +90,9 @@ module "github_webhooks" {
11090

11191

11292

93+
<!-- markdownlint-disable -->
11394
## Makefile Targets
114-
```
95+
```text
11596
Available targets:
11697
11798
help Help screen
@@ -120,20 +101,20 @@ Available targets:
120101
lint Lint terraform code
121102
122103
```
104+
<!-- markdownlint-restore -->
123105
## Requirements
124106

125107
| Name | Version |
126108
|------|---------|
127109
| terraform | ~> 0.12.0 |
128110
| github | ~> 2.8.0 |
129-
| github | ~> 2.2 |
130111
| local | ~> 1.2 |
131112

132113
## Providers
133114

134115
| Name | Version |
135116
|------|---------|
136-
| github | ~> 2.8.0 ~> 2.2 |
117+
| github | ~> 2.8.0 |
137118

138119
## Inputs
139120

@@ -161,9 +142,9 @@ Available targets:
161142

162143

163144

164-
## Share the Love
145+
## Share the Love
165146

166-
Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-github-repository-webhooks)! (it helps us **a lot**)
147+
Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-github-repository-webhooks)! (it helps us **a lot**)
167148

168149
Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)
169150

@@ -180,15 +161,15 @@ Check out these related projects.
180161

181162
## References
182163

183-
For additional context, refer to some of these links.
164+
For additional context, refer to some of these links.
184165

185166
- [GitHub Event Types](https://developer.github.com/v3/activity/events/types/) - The list of supported event types which can trigger a webhook
186167
- [GitHub Hook Types](https://api.github.com/hooks) - The type of the webhooks.
187168

188169

189170
## Help
190171

191-
**Got a question?** We got answers.
172+
**Got a question?** We got answers.
192173

193174
File a GitHub [issue](https://github.com/cloudposse/terraform-github-repository-webhooks/issues), send us an [email][email] or join our [Slack Community][slack].
194175

@@ -197,7 +178,7 @@ File a GitHub [issue](https://github.com/cloudposse/terraform-github-repository-
197178
## DevOps Accelerator for Startups
198179

199180

200-
We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
181+
We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
201182

202183
[![Learn More](https://img.shields.io/badge/learn%20more-success.svg?style=for-the-badge)][commercial_support]
203184

@@ -226,11 +207,11 @@ Participate in our [Discourse Forums][discourse]. Here you'll find answers to co
226207

227208
## Newsletter
228209

229-
Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
210+
Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
230211

231212
## Office Hours
232213

233-
[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
214+
[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
234215

235216
[![zoom](https://img.cloudposse.com/fit-in/200x200/https://cloudposse.com/wp-content/uploads/2019/08/Powered-by-Zoom.png")][office_hours]
236217

@@ -261,28 +242,30 @@ Copyright © 2017-2020 [Cloud Posse, LLC](https://cpco.io/copyright)
261242

262243

263244

264-
## License
245+
## License
265246

266-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
247+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
267248

268249
See [LICENSE](LICENSE) for full details.
269250

270-
Licensed to the Apache Software Foundation (ASF) under one
271-
or more contributor license agreements. See the NOTICE file
272-
distributed with this work for additional information
273-
regarding copyright ownership. The ASF licenses this file
274-
to you under the Apache License, Version 2.0 (the
275-
"License"); you may not use this file except in compliance
276-
with the License. You may obtain a copy of the License at
277-
278-
https://www.apache.org/licenses/LICENSE-2.0
279-
280-
Unless required by applicable law or agreed to in writing,
281-
software distributed under the License is distributed on an
282-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
283-
KIND, either express or implied. See the License for the
284-
specific language governing permissions and limitations
285-
under the License.
251+
```text
252+
Licensed to the Apache Software Foundation (ASF) under one
253+
or more contributor license agreements. See the NOTICE file
254+
distributed with this work for additional information
255+
regarding copyright ownership. The ASF licenses this file
256+
to you under the Apache License, Version 2.0 (the
257+
"License"); you may not use this file except in compliance
258+
with the License. You may obtain a copy of the License at
259+
260+
https://www.apache.org/licenses/LICENSE-2.0
261+
262+
Unless required by applicable law or agreed to in writing,
263+
software distributed under the License is distributed on an
264+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
265+
KIND, either express or implied. See the License for the
266+
specific language governing permissions and limitations
267+
under the License.
268+
```
286269

287270

288271

@@ -304,7 +287,7 @@ This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? P
304287

305288
We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source].
306289

307-
We offer [paid support][commercial_support] on all of our projects.
290+
We offer [paid support][commercial_support] on all of our projects.
308291

309292
Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
310293

docs/targets.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<!-- markdownlint-disable -->
12
## Makefile Targets
2-
```
3+
```text
34
Available targets:
45
56
help Help screen
@@ -8,3 +9,4 @@ Available targets:
89
lint Lint terraform code
910
1011
```
12+
<!-- markdownlint-restore -->

docs/terraform.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
|------|---------|
55
| terraform | ~> 0.12.0 |
66
| github | ~> 2.8.0 |
7-
| github | ~> 2.2 |
87
| local | ~> 1.2 |
98

109
## Providers
1110

1211
| Name | Version |
1312
|------|---------|
14-
| github | ~> 2.8.0 ~> 2.2 |
13+
| github | ~> 2.8.0 |
1514

1615
## Inputs
1716

main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
terraform {
2-
required_providers {
3-
github = "~> 2.8.0"
4-
}
5-
}
6-
71
provider "github" {
82
token = var.github_token != "" ? var.github_token : null
93
organization = var.github_organization

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = "~> 0.12.0"
33

44
required_providers {
5-
github = "~> 2.2"
5+
github = "~> 2.8.0"
66
local = "~> 1.2"
77
}
88
}

0 commit comments

Comments
 (0)