-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ci): add reviewdog * fix(proto): reviewdog lint * fix(ci): reviewdog
- Loading branch information
1 parent
1a211e2
commit 6067f88
Showing
7 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
# Lint directives. | ||
lint: | ||
directories: | ||
exclude: | ||
- third_party | ||
- garajonai | ||
- scripts | ||
- vendor | ||
- proto/example | ||
|
||
# Linter rules. | ||
# Run `protolint list` to see all available rules. | ||
rules: | ||
# Determines whether or not to include the default set of linters. | ||
no_default: true | ||
|
||
# Set the default to all linters. This option works the other way around as no_default does. | ||
# If you want to enable this option, delete the comment out below and no_default. | ||
# all_default: true | ||
|
||
# The specific linters to add. | ||
add: | ||
- INDENT | ||
- MESSAGES_HAVE_COMMENT | ||
- SERVICES_HAVE_COMMENT | ||
- RPCS_HAVE_COMMENT | ||
- PROTO3_FIELDS_AVOID_REQUIRED | ||
- PROTO3_GROUPS_AVOID | ||
- REPEATED_FIELD_NAMES_PLURALIZED | ||
- ENUMS_HAVE_COMMENT | ||
- ENUM_FIELDS_HAVE_COMMENT | ||
- SYNTAX_CONSISTENT | ||
- QUOTE_CONSISTENT | ||
- RPC_NAMES_UPPER_CAMEL_CASE | ||
|
||
# Linter rules option. | ||
rules_option: | ||
indent: | ||
style: 4 | ||
not_insert_newline: true | ||
|
||
# QUOTE_CONSISTENT rule option. | ||
quote_consistent: | ||
# Available quote are "double" or "single". | ||
quote: double | ||
|
||
# ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH rule option. | ||
enum_field_names_zero_value_end_with: | ||
suffix: INVALID | ||
|
||
# RPC_NAMES_CASE rule option. | ||
rpc_names_case: | ||
# The specific convention the name should conforms to. | ||
## Available conventions are "lower_camel_case", "upper_snake_case", or "lower_snake_case". | ||
convention: upper_snake_case | ||
|
||
# SYNTAX_CONSISTENT rule option. | ||
syntax_consistent: | ||
# Default is proto3. | ||
version: proto3 |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* @garajonai/family | ||
proto/iam*/ @jorgechato | ||
scripts/go/ @jorgechato | ||
scripts/nodejs/ @jorgechato | ||
scripts/rust/ @jorgechato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
|
||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Review Dog" | ||
on: | ||
pull_request: | ||
permissions: | ||
checks: write | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Load secrets | ||
uses: garajonai/workflows-lib/load-secrets@main | ||
id: botanibit | ||
with: | ||
op-token: ${{ secrets.OP_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ steps.botanibit.outputs.token }} | ||
|
||
- name: Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Setup reviewdog | ||
uses: reviewdog/action-setup@v1 | ||
with: | ||
reviewdog_version: latest | ||
|
||
- name: Setup protolint | ||
run: go install github.com/yoheimuta/protolint/cmd/protolint@latest | ||
|
||
- name: Run reviewdog | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ steps.botanibit.outputs.token }} | ||
run: protolint -config_path=.github/.protolint.yml proto | reviewdog -name="protolint" -fail-on-error=true -level=info -reporter="github-pr-review" -f=protolint -filter-mode=added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters