Skip to content

Commit

Permalink
77 adopt module template to latest development guide rules (#80)
Browse files Browse the repository at this point in the history
* move versions.tf to main.tf file

* adding more providers

* bump pre-commit version

* set a version module in the bug report

* set `anything else` section as non mandatory for bugs and features 

---------

Co-authored-by: Piotr Stawarski <p@stawarski.pl>
  • Loading branch information
michaltomczuk and stawii authored Apr 9, 2024
1 parent e93d5fb commit edea3a1
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 22 deletions.
12 changes: 8 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Bug report
description: File a bug/issue
title: "[BUG]: "
labels: ["bug"]
# assignees:
# - OPSdiyBot
body:
- type: checkboxes
attributes:
Expand Down Expand Up @@ -38,11 +40,13 @@ body:
label: Environment
description: |
examples:
- **Terraform version**: 1.3.0
- **Terraform provider version**: 4.0
- **Terraform version**: 1.5.5
- **Terraform provider version**:5.44.0
- **Terraform module version**: 0.5.1
value: |
- Terraform version: 0.0.0
- Terraform provider version: 0.0
- Terraform version: X.Y.Z
- Terraform provider version: X.Y.Z
- Terraform module version: X.Y.Z
render: markdown
validations:
required: true
Expand Down
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Feature request
description: Suggest new functionality
title: "[FEATURE]: "
labels: ["enhancement"]
# assignees:
# - OPSdiyBot
body:
- type: checkboxes
attributes:
Expand All @@ -27,7 +29,7 @@ body:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
required: false
- type: textarea
attributes:
label: Anything else?
Expand All @@ -37,4 +39,4 @@ body:
**Tip**: You can attach images or log files by clicking this area to highlight it and then dragging files in.
**Tip**: You can use GitHub Gist to share your concepts/ideas.
validations:
required: true
required: false
3 changes: 2 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
terraform 1.5.7
terraform-docs 0.17.0
tflint 0.50.3
pre-commit 3.6.2
pre-commit 3.7.0
# python 3.11.2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module "module_name" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.1 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |

## Providers

Expand Down
25 changes: 24 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# Terraform code goes here
terraform {
required_version = ">= 1.5.7"

required_providers {
# aws = {
# source = "hashicorp/aws"
# version = ">= 5.44.0"
# }
# azurerm = {
# source = "hashicorp/azurerm"
# version = ">= 3.98.0"
# }
# digitalocean = {
# source = "digitalocean/digitalocean"
# version = ">= 2.36.0"
# }
# github = {
# source = "integrations/github"
# version = ">= 6.2.1"
# }
}
}

# TODO: Add resources here.
13 changes: 0 additions & 13 deletions versions.tf

This file was deleted.

0 comments on commit edea3a1

Please sign in to comment.