Skip to content

Commit 8e08754

Browse files
committed
chore: add codeowners, lint pr workflow and pre commit hook
1 parent 9fac279 commit 8e08754

File tree

9 files changed

+82
-6
lines changed

9 files changed

+82
-6
lines changed

Diff for: .github/CODEOWNERS

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CODEOWNERS info: https://help.github.com/en/articles/about-code-owners
2+
# Owners are automatically requested for review for PRs that changes code
3+
# that they own.
4+
5+
* @pehlicd

Diff for: .github/workflows/lint-pr.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: lint_pr_title
16+
id: lint_pr_title
17+
uses: amannn/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: marocchino/sticky-pull-request-comment@v2
21+
# When the previous steps fails, the workflow would stop. By adding this
22+
# condition you can continue the execution with the populated error message.
23+
if: always() && (steps.lint_pr_title.outputs.error_message != null)
24+
with:
25+
header: pr-title-lint-error
26+
message: |
27+
Hey there and thank you for opening this pull request! 👋🏼
28+
29+
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
30+
31+
Details:
32+
33+
```
34+
${{ steps.lint_pr_title.outputs.error_message }}
35+
```
36+
# Delete a previous comment when the issue has been resolved
37+
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
38+
uses: marocchino/sticky-pull-request-comment@v2
39+
with:
40+
header: pr-title-lint-error
41+
delete: true

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ test:
1515
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
1616

1717
testacc:
18-
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
18+
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m

Diff for: docs/data-sources/mapping.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "keep_mapping Data Source - terraform-provider-keep"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# keep_mapping (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `id` (Number) ID of the mapping
21+
22+
### Read-Only
23+
24+
- `attributes` (List of String) List of attributes
25+
- `created_at` (String) Creation time of the mapping
26+
- `created_by` (String) Creator of the mapping
27+
- `description` (String) Description of the mapping
28+
- `file_name` (String) Name of the mapping file
29+
- `matchers` (List of String) List of matchers
30+
- `name` (String) Name of the mapping

Diff for: docs/data-sources/workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
page_title: "keep_workflow Data Source - terraform-provider-keep"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# keep_workflow (Data Source)

Diff for: docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
page_title: "keep Provider"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# keep Provider

Diff for: docs/resources/mapping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
page_title: "keep_mapping Resource - terraform-provider-keep"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# keep_mapping (Resource)

Diff for: docs/resources/workflows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
page_title: "keep_workflows Resource - terraform-provider-keep"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# keep_workflows (Resource)

0 commit comments

Comments
 (0)