Skip to content

Commit 27ad668

Browse files
committed
chore: update GH + Crabbit configs and workflows
1 parent 3b26671 commit 27ad668

File tree

6 files changed

+168
-3
lines changed

6 files changed

+168
-3
lines changed

.coderabbit.yaml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Docs: https://docs.coderabbit.ai/configure-coderabbit
2+
# Schema: https://coderabbit.ai/integrations/schema.v2.json
3+
# Support: https://discord.gg/GsXnASn26c
4+
5+
language: en
6+
7+
tone_instructions: |
8+
Provide feedback in a professional, friendly, constructive, and concise tone.
9+
Offer clear, specific suggestions and best practices to help enhance the code quality and promote learning.
10+
11+
early_access: true
12+
13+
knowledge_base:
14+
# The scope of learnings to use for the knowledge base.
15+
# `local` uses the repository's learnings,
16+
# `global` uses the organization's learnings,
17+
# `auto` uses repository's learnings for public repositories and organization's learnings for private repositories.
18+
# Default value: `auto`
19+
learnings:
20+
scope: global
21+
issues:
22+
scope: global
23+
pull_requests:
24+
scope: global
25+
26+
reviews:
27+
profile: chill
28+
auto_review:
29+
# Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive)
30+
ignore_title_keywords:
31+
- wip
32+
- draft
33+
- test
34+
# Set the commit status to 'pending' when the review is in progress and 'success' when it is complete.
35+
commit_status: false
36+
# Post review details on each review. Additionally, post a review status when a review is skipped in certain cases.
37+
review_status: false
38+
path_instructions:
39+
- path: "**/*.tf"
40+
instructions: |
41+
You're a Terraform expert who has thoroughly studied all the documentation from Hashicorp https://developer.hashicorp.com/terraform/docs and OpenTofu https://opentofu.org/docs/.
42+
You have a strong grasp of Terraform syntax and prioritize providing accurate and insightful code suggestions.
43+
As a fan of the Cloud Posse / SweetOps ecosystem, you incorporate many of their best practices https://docs.cloudposse.com/best-practices/terraform/ while balancing them with general Terraform guidelines.
44+
tools:
45+
# By default, all tools are enabled.
46+
# Masterpoint uses Trunk (https://trunk.io) so we do not need a lot of this feedback due to overlap.
47+
shellcheck:
48+
enabled: false
49+
ruff:
50+
enabled: false
51+
markdownlint:
52+
enabled: false
53+
github-checks:
54+
enabled: false
55+
languagetool:
56+
enabled: false
57+
biome:
58+
enabled: false
59+
hadolint:
60+
enabled: false
61+
swiftlint:
62+
enabled: false
63+
phpstan:
64+
enabled: false
65+
golangci-lint:
66+
enabled: false
67+
yamllint:
68+
enabled: false
69+
gitleaks:
70+
enabled: false
71+
checkov:
72+
enabled: false
73+
detekt:
74+
enabled: false
75+
eslint:
76+
enabled: false
77+
rubocop:
78+
enabled: false
79+
buf:
80+
enabled: false
81+
regal:
82+
enabled: false
83+
actionlint:
84+
enabled: false
85+
pmd:
86+
enabled: false
87+
cppcheck:
88+
enabled: false
89+
circleci:
90+
enabled: false

.github/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
concurrency:
4+
group: lint-${{ github.head_ref || github.run_id }}
5+
cancel-in-progress: true
6+
7+
on: pull_request
8+
9+
permissions:
10+
actions: read
11+
checks: write
12+
contents: read
13+
pull-requests: read
14+
15+
jobs:
16+
trunk-check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out Git repository
20+
uses: actions/checkout@v4
21+
- name: Trunk Check
22+
uses: trunk-io/trunk-action@4d5ecc89b2691705fd08c747c78652d2fc806a94 # v1.1.19
23+
24+
conventional-title:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/release-please.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f
17+
with:
18+
release-type: terraform-module

.github/trunk-upgrade.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Monthly Trunk Upgrade
2+
on:
3+
schedule:
4+
# On the first day of every month @ 8am
5+
- cron: 0 8 1 * *
6+
# Allows us to manually run the workflow from Actions UI
7+
workflow_dispatch: {}
8+
permissions: read-all
9+
jobs:
10+
trunk_upgrade:
11+
name: Upgrade Trunk
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # For trunk to create PRs
15+
pull-requests: write # For trunk to create PRs
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Trunk Upgrade
21+
uses: trunk-io/trunk-action/upgrade@2eaee169140ec559bd556208f9f99cdfdf468da8 # v1.1.18
22+
with:
23+
base: main
24+
reviewers: "@masterpointio/masterpoint-internal"
25+
prefix: "chore: "

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ override.tf.json
3434

3535
# Ignore lock files
3636
.terraform.lock.hcl
37+
38+
# Random
39+
*.DS_Store

aqua.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# - all
99
registries:
1010
- type: standard
11-
ref: v4.137.0 # renovate: depName=aquaproj/aqua-registry
11+
ref: v4.144.0 # renovate: depName=aquaproj/aqua-registry
1212
packages:
1313
- name: terraform-docs/[email protected]
14-
- name: hashicorp/[email protected].3
15-
- name: opentofu/[email protected].1
14+
- name: hashicorp/[email protected].4
15+
- name: opentofu/[email protected].2

0 commit comments

Comments
 (0)