Skip to content

Commit 0152162

Browse files
authored
Sync github (#138)
1 parent 350e3ea commit 0152162

10 files changed

+180
-12
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
name: Bug report
3+
description: Create a report to help us improve
4+
labels: ["bug"]
5+
assignees: [""]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Found a bug?
11+
12+
Please checkout our [Slack Community](https://slack.cloudposse.com)
13+
or visit our [Slack Archive](https://archive.sweetops.com/).
14+
15+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
16+
17+
- type: textarea
18+
id: concise-description
19+
attributes:
20+
label: Describe the Bug
21+
description: A clear and concise description of what the bug is.
22+
placeholder: What is the bug about?
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected Behavior
30+
description: A clear and concise description of what you expected.
31+
placeholder: What happened?
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: reproduction-steps
37+
attributes:
38+
label: Steps to Reproduce
39+
description: Steps to reproduce the behavior.
40+
placeholder: How do we reproduce it?
41+
validations:
42+
required: true
43+
44+
- type: textarea
45+
id: screenshots
46+
attributes:
47+
label: Screenshots
48+
description: If applicable, add screenshots or logs to help explain.
49+
validations:
50+
required: false
51+
52+
- type: textarea
53+
id: environment
54+
attributes:
55+
label: Environment
56+
description: Anything that will help us triage the bug.
57+
placeholder: |
58+
- OS: [e.g. Linux, OSX, WSL, etc]
59+
- Version [e.g. 10.15]
60+
- Module version
61+
- Terraform version
62+
validations:
63+
required: false
64+
65+
- type: textarea
66+
id: additional
67+
attributes:
68+
label: Additional Context
69+
description: |
70+
Add any other context about the problem here.
71+
validations:
72+
required: false
+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
name: Feature Request
3+
description: Suggest an idea for this project
4+
labels: ["feature request"]
5+
assignees: [""]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Have a question?
11+
12+
Please checkout our [Slack Community](https://slack.cloudposse.com)
13+
or visit our [Slack Archive](https://archive.sweetops.com/).
14+
15+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
16+
17+
- type: textarea
18+
id: concise-description
19+
attributes:
20+
label: Describe the Feature
21+
description: A clear and concise description of what the feature is.
22+
placeholder: What is the feature about?
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected Behavior
30+
description: A clear and concise description of what you expected.
31+
placeholder: What happened?
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: use-case
37+
attributes:
38+
label: Use Case
39+
description: |
40+
Is your feature request related to a problem/challenge you are trying
41+
to solve?
42+
43+
Please provide some additional context of why this feature or
44+
capability will be valuable.
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: ideal-solution
50+
attributes:
51+
label: Describe Ideal Solution
52+
description: A clear and concise description of what you want to happen.
53+
validations:
54+
required: true
55+
56+
- type: textarea
57+
id: alternatives-considered
58+
attributes:
59+
label: Alternatives Considered
60+
description: Explain alternative solutions or features considered.
61+
validations:
62+
required: false
63+
64+
- type: textarea
65+
id: additional
66+
attributes:
67+
label: Additional Context
68+
description: |
69+
Add any other context about the problem here.
70+
validations:
71+
required: false

.github/PULL_REQUEST_TEMPLATE.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
## what
2-
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3-
* Use bullet points to be concise and to the point.
2+
3+
<!--
4+
- Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
5+
- Use bullet points to be concise and to the point.
6+
-->
47

58
## why
6-
* Provide the justifications for the changes (e.g. business case).
7-
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8-
* Use bullet points to be concise and to the point.
9+
10+
<!--
11+
- Provide the justifications for the changes (e.g. business case).
12+
- Describe why these changes were made (e.g. why do these commits fix the problem?)
13+
- Use bullet points to be concise and to the point.
14+
-->
915

1016
## references
11-
* Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
12-
* Use `closes #123`, if this PR closes a GitHub issue `#123`
1317

18+
<!--
19+
- Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
20+
- Use `closes #123`, if this PR closes a GitHub issue `#123`
21+
-->

.github/mergify.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ pull_request_rules:
44
- name: "approve automated PRs that have passed checks"
55
conditions:
66
- "author~=^(cloudpossebot|renovate\\[bot\\])$"
7-
- "base=master"
87
- "-closed"
98
- "head~=^(auto-update|renovate)/.*"
109
- "check-success=test/bats"
1110
- "check-success=test/readme"
1211
- "check-success=test/terratest"
1312
- "check-success=validate-codeowners"
13+
- or:
14+
- "base=master"
15+
- "base=main"
16+
- "base~=^release/v\\d{1,2}$"
17+
1418
actions:
1519
review:
1620
type: "APPROVE"
@@ -20,7 +24,6 @@ pull_request_rules:
2024
- name: "merge automated PRs when approved and tests pass"
2125
conditions:
2226
- "author~=^(cloudpossebot|renovate\\[bot\\])$"
23-
- "base=master"
2427
- "-closed"
2528
- "head~=^(auto-update|renovate)/.*"
2629
- "check-success=test/bats"
@@ -30,6 +33,11 @@ pull_request_rules:
3033
- "#approved-reviews-by>=1"
3134
- "#changes-requested-reviews-by=0"
3235
- "#commented-reviews-by=0"
36+
- or:
37+
- "base=master"
38+
- "base=main"
39+
- "base~=^release/v\\d{1,2}$"
40+
3341
actions:
3442
merge:
3543
method: "squash"
@@ -50,7 +58,10 @@ pull_request_rules:
5058

5159
- name: "remove outdated reviews"
5260
conditions:
53-
- "base=master"
61+
- or:
62+
- "base=master"
63+
- "base=main"
64+
- "base~=^release/v\\d{1,2}$"
5465
actions:
5566
dismiss_reviews:
5667
changes_requested: true

.github/renovate.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config:base",
44
":preserveSemverRanges"
55
],
6+
"baseBranches": ["main", "master", "/^release\\/v\\d{1,2}$/"],
67
"labels": ["auto-update"],
78
"dependencyDashboardAutoclose": true,
89
"enabledManagers": ["terraform"],

.github/workflows/feature-branch-chatops.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: feature-branch-chatops
23
on:
34
issue_comment:

.github/workflows/feature-branch.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: feature-branch
23
on:
34
pull_request:
@@ -9,7 +10,7 @@ on:
910
permissions:
1011
pull-requests: write
1112
id-token: write
12-
contents: read
13+
contents: write
1314

1415
jobs:
1516
terraform-module:

.github/workflows/release-branch.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: release-branch
23
on:
34
push:

.github/workflows/release-published.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: release-published
23
on:
34
release:

.github/workflows/scheduled.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: scheduled
23
on:
3-
workflow_dispatch: {} # Allows manually trigger this workflow
4+
workflow_dispatch: { } # Allows manually trigger this workflow
45
schedule:
56
- cron: "0 3 * * *"
67

0 commit comments

Comments
 (0)