Skip to content

Commit 9b57199

Browse files
committed
undo README newline changes
1 parent d53fa40 commit 9b57199

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
# terraform-github-repository
1010

1111
A [Terraform] module for creating a public or private repository on [Github].
12+
1213
**_This module supports Terraform v1.x and is compatible with the Official Terraform GitHub Provider v4.20 and above from `integrations/github`._**
14+
1315
**Attention: This module is incompatible with the Hashicorp GitHub Provider! The latest version of this module supporting `hashicorp/github` provider is `~> 0.10.0`**
16+
1417
** Note: Versions 5.3.0, 5.4.0, and 5.5.0 of the Terraform Github Provider have broken branch protections support and should not be used.**
1518

1619

@@ -59,22 +62,26 @@ rollouts** and **rollbacks**. It's a comprehensive, ready-to-use blueprint
5962
maintained by our team of platform engineering experts and saves
6063
companies such as yours tons of time by building on top of a pre-configured
6164
solution instead of building and maintaining it yourself.
65+
6266
For details please see [https://mineiros.io/github-as-code][github-as-code].
6367

6468
## Module Features
6569

6670
In contrast to the plain `github_repository` resource this module enables various other
6771
features like Branch Protection or Collaborator Management.
72+
6873
- **Default Security Settings**:
6974
This module creates a `private` repository by default,
7075
Deploy keys are `read-only` by default
76+
7177
- **Standard Repository Features**:
7278
Setting basic Metadata,
7379
Merge Strategy,
7480
Auto Init,
7581
License Template,
7682
Gitignore Template,
7783
Template Repository
84+
7885
- **Extended Repository Features**:
7986
Branches,
8087
Branch Protection,
@@ -85,6 +92,7 @@ features like Branch Protection or Collaborator Management.
8592
Deploy Keys,
8693
Projects,
8794
Repository Webhooks
95+
8896
- _Features not yet implemented_:
8997
Project Columns support,
9098
Actions,
@@ -93,10 +101,12 @@ features like Branch Protection or Collaborator Management.
93101
## Getting Started
94102

95103
Most basic usage creating a new private github repository.
104+
96105
```hcl
97106
module "repository" {
98107
source = "mineiros-io/repository/github"
99108
version = "~> 0.18.0"
109+
100110
name = "terraform-github-repository"
101111
license_template = "apache-2.0"
102112
gitignore_template = "Terraform"
@@ -607,9 +617,12 @@ This is due to some terraform limitation and we will update the module once terr
607617
- [**`branch_protections_v4`**](#var-branch_protections_v4): *(Optional `list(branch_protection_v4)`)*<a name="var-branch_protections_v4"></a>
608618

609619
This resource allows you to configure v4 branch protection for repositories in your organization.
620+
610621
Each element in the list is a branch to be protected and the value the corresponding to the desired configuration for the branch.
622+
611623
When applied, the branch will be protected from forced pushes and deletion.
612624
Additional constraints, such as required status checks or restrictions on users and teams, can also be configured.
625+
613626
**_NOTE:_** May conflict with v3 branch protections if used for the same branch.
614627

615628
Default is `[]`.
@@ -876,9 +889,13 @@ This is due to some terraform limitation and we will update the module once terr
876889
- [**`plaintext_secrets`**](#var-plaintext_secrets): *(Optional `map(string)`)*<a name="var-plaintext_secrets"></a>
877890

878891
This map allows you to create and manage secrets for repositories in your organization.
892+
879893
Each element in the map is considered a secret to be managed, being the key map the secret name and the value the corresponding secret in plain text:
894+
880895
When applied, a secret with the given key and value will be created in the repositories.
896+
881897
The value of the secrets must be given in plain text, GitHub provider is in charge of encrypting it.
898+
882899
**Attention:** You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the encrypted_value using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
883900

884901
Default is `{}`.
@@ -895,7 +912,9 @@ This is due to some terraform limitation and we will update the module once terr
895912
- [**`encrypted_secrets`**](#var-encrypted_secrets): *(Optional `map(string)`)*<a name="var-encrypted_secrets"></a>
896913

897914
This map allows you to create and manage encrypted secrets for repositories in your organization.
915+
898916
Each element in the map is considered a secret to be managed, being the key map the secret name and the value the corresponding encrypted value of the secret using the Github public key in Base64 format.b
917+
899918
When applied, a secret with the given key and value will be created in the repositories.
900919

901920
Default is `{}`.
@@ -1044,7 +1063,9 @@ The following attributes are exported by the module:
10441063
## Module Versioning
10451064

10461065
This Module follows the principles of [Semantic Versioning (SemVer)].
1066+
10471067
Given a version number `MAJOR.MINOR.PATCH`, we increment the:
1068+
10481069
1. `MAJOR` version when we make incompatible changes,
10491070
2. `MINOR` version when we add functionality in a backwards compatible manner, and
10501071
3. `PATCH` version when we make backwards compatible bug fixes.
@@ -1058,8 +1079,10 @@ Given a version number `MAJOR.MINOR.PATCH`, we increment the:
10581079

10591080
[Mineiros][homepage] is a remote-first company headquartered in Berlin, Germany
10601081
that solves development, automation and security challenges in cloud infrastructure.
1082+
10611083
Our vision is to massively reduce time and overhead for teams to manage and
10621084
deploy production-grade and secure cloud infrastructure.
1085+
10631086
We offer commercial support for all of our modules and encourage you to reach out
10641087
if you have any questions or need help. Feel free to email us at [hello@mineiros.io] or join our
10651088
[Community Slack channel][slack].
@@ -1081,8 +1104,10 @@ Run `make help` to see details on each available target.
10811104
## License
10821105

10831106
[![license][badge-license]][apache20]
1107+
10841108
This module is licensed under the Apache License Version 2.0, January 2004.
10851109
Please see [LICENSE] for full details.
1110+
10861111
Copyright &copy; 2020-2022 [Mineiros GmbH][homepage]
10871112

10881113

README.tfdoc.hcl

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ section {
3838
toc = true
3939
content = <<-END
4040
A [Terraform] module for creating a public or private repository on [Github].
41+
4142
**_This module supports Terraform v1.x and is compatible with the Official Terraform GitHub Provider v4.20 and above from `integrations/github`._**
43+
4244
**Attention: This module is incompatible with the Hashicorp GitHub Provider! The latest version of this module supporting `hashicorp/github` provider is `~> 0.10.0`**
45+
4346
** Note: Versions 5.3.0, 5.4.0, and 5.5.0 of the Terraform Github Provider have broken branch protections support and should not be used.**
4447
END
4548

@@ -57,6 +60,7 @@ section {
5760
maintained by our team of platform engineering experts and saves
5861
companies such as yours tons of time by building on top of a pre-configured
5962
solution instead of building and maintaining it yourself.
63+
6064
For details please see [https://mineiros.io/github-as-code][github-as-code].
6165
END
6266
}
@@ -66,16 +70,19 @@ section {
6670
content = <<-END
6771
In contrast to the plain `github_repository` resource this module enables various other
6872
features like Branch Protection or Collaborator Management.
73+
6974
- **Default Security Settings**:
7075
This module creates a `private` repository by default,
7176
Deploy keys are `read-only` by default
77+
7278
- **Standard Repository Features**:
7379
Setting basic Metadata,
7480
Merge Strategy,
7581
Auto Init,
7682
License Template,
7783
Gitignore Template,
7884
Template Repository
85+
7986
- **Extended Repository Features**:
8087
Branches,
8188
Branch Protection,
@@ -86,6 +93,7 @@ section {
8693
Deploy Keys,
8794
Projects,
8895
Repository Webhooks
96+
8997
- _Features not yet implemented_:
9098
Project Columns support,
9199
Actions,
@@ -97,10 +105,12 @@ section {
97105
title = "Getting Started"
98106
content = <<-END
99107
Most basic usage creating a new private github repository.
108+
100109
```hcl
101110
module "repository" {
102111
source = "mineiros-io/repository/github"
103112
version = "~> 0.18.0"
113+
104114
name = "terraform-github-repository"
105115
license_template = "apache-2.0"
106116
gitignore_template = "Terraform"
@@ -786,9 +796,12 @@ section {
786796
default = []
787797
description = <<-END
788798
This resource allows you to configure v4 branch protection for repositories in your organization.
799+
789800
Each element in the list is a branch to be protected and the value the corresponding to the desired configuration for the branch.
801+
790802
When applied, the branch will be protected from forced pushes and deletion.
791803
Additional constraints, such as required status checks or restrictions on users and teams, can also be configured.
804+
792805
**_NOTE:_** May conflict with v3 branch protections if used for the same branch.
793806
END
794807

@@ -1162,9 +1175,13 @@ section {
11621175
default = {}
11631176
description = <<-END
11641177
This map allows you to create and manage secrets for repositories in your organization.
1178+
11651179
Each element in the map is considered a secret to be managed, being the key map the secret name and the value the corresponding secret in plain text:
1180+
11661181
When applied, a secret with the given key and value will be created in the repositories.
1182+
11671183
The value of the secrets must be given in plain text, GitHub provider is in charge of encrypting it.
1184+
11681185
**Attention:** You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the encrypted_value using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
11691186
END
11701187

@@ -1181,7 +1198,9 @@ section {
11811198
default = {}
11821199
description = <<-END
11831200
This map allows you to create and manage encrypted secrets for repositories in your organization.
1201+
11841202
Each element in the map is considered a secret to be managed, being the key map the secret name and the value the corresponding encrypted value of the secret using the Github public key in Base64 format.b
1203+
11851204
When applied, a secret with the given key and value will be created in the repositories.
11861205
END
11871206

@@ -1401,7 +1420,9 @@ section {
14011420
title = "Module Versioning"
14021421
content = <<-END
14031422
This Module follows the principles of [Semantic Versioning (SemVer)].
1423+
14041424
Given a version number `MAJOR.MINOR.PATCH`, we increment the:
1425+
14051426
1. `MAJOR` version when we make incompatible changes,
14061427
2. `MINOR` version when we add functionality in a backwards compatible manner, and
14071428
3. `PATCH` version when we make backwards compatible bug fixes.
@@ -1421,8 +1442,10 @@ section {
14211442
content = <<-END
14221443
[Mineiros][homepage] is a remote-first company headquartered in Berlin, Germany
14231444
that solves development, automation and security challenges in cloud infrastructure.
1445+
14241446
Our vision is to massively reduce time and overhead for teams to manage and
14251447
deploy production-grade and secure cloud infrastructure.
1448+
14261449
We offer commercial support for all of our modules and encourage you to reach out
14271450
if you have any questions or need help. Feel free to email us at [hello@mineiros.io] or join our
14281451
[Community Slack channel][slack].
@@ -1456,8 +1479,10 @@ section {
14561479
title = "License"
14571480
content = <<-END
14581481
[![license][badge-license]][apache20]
1482+
14591483
This module is licensed under the Apache License Version 2.0, January 2004.
14601484
Please see [LICENSE] for full details.
1485+
14611486
Copyright &copy; 2020-2022 [Mineiros GmbH][homepage]
14621487
END
14631488
}
@@ -1557,4 +1582,4 @@ references {
15571582
ref "contribution guidelines" {
15581583
value = "https://github.com/mineiros-io/terraform-github-repository/blob/main/CONTRIBUTING.md"
15591584
}
1560-
}
1585+
}

0 commit comments

Comments
 (0)