From 949a06d76a0bd06087f7c49279dbfb2c49cf79ff Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 06:13:52 +0000 Subject: [PATCH 1/2] Update actions/setup-go action to v5 --- .github/workflows/check_go.yaml | 2 +- .github/workflows/gen_buf.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_go.yaml b/.github/workflows/check_go.yaml index a8f9f0762..99752bc5f 100644 --- a/.github/workflows/check_go.yaml +++ b/.github/workflows/check_go.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version-file: "go/go.mod" cache: true diff --git a/.github/workflows/gen_buf.yaml b/.github/workflows/gen_buf.yaml index 1d3ffb44d..4aba58544 100644 --- a/.github/workflows/gen_buf.yaml +++ b/.github/workflows/gen_buf.yaml @@ -21,7 +21,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} - uses: bufbuild/buf-setup-action@v1 - uses: bufbuild/buf-lint-action@v1 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version-file: "go/go.mod" - run: | From 27d9095819f93fc61390f72744420becba5a73c1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 06:15:45 +0000 Subject: [PATCH 2/2] Commit from GitHub Actions (compile_buf) --- proto/spec/v1/userdata.proto | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/proto/spec/v1/userdata.proto b/proto/spec/v1/userdata.proto index aab0862bc..2f1933e6f 100644 --- a/proto/spec/v1/userdata.proto +++ b/proto/spec/v1/userdata.proto @@ -21,8 +21,8 @@ service UserDataService { message User { // ユーザID。他のIDはuint32であるが、ユーザIDのみJWTを使う都合上string。 string id = 1 [(validate.rules).string = { - min_len: 1, - max_len: 1024, + min_len: 1 + max_len: 1024 }]; } message Users { @@ -67,7 +67,7 @@ message Horse { message HorseDetail { Horse data = 1 [(validate.rules).message.required = true]; string owner = 2 [(validate.rules).string = { - min_len: 2, + min_len: 2 max_len: 256 }]; message Image { @@ -79,12 +79,12 @@ message HorseDetail { } // 拡張子 ImageType type = 1 [(validate.rules).enum = { - not_in: [0], - defined_only: true, + not_in: [0] + defined_only: true }]; // 画像のデータ bytes(img) bytes data = 2 [(validate.rules).bytes = { - min_len: 1, + min_len: 1 max_len: 1048576 }]; } @@ -129,7 +129,7 @@ message RegisterHorseRequest { string name = 1 [(validate.rules).string.pattern = "^\\p{Katakana}(\\p{Katakana}|ー){1,8}$"]; // 所有者名 string owner = 2 [(validate.rules).string = { - min_len: 2, + min_len: 2 max_len: 256 }]; // admin JWT @@ -184,7 +184,7 @@ message RaceOrder { // 順位。最も早くゴールしたときに1。 uint32 order = 1 [(validate.rules).uint32.gte = 1]; NoteType note = 2 [(validate.rules).enum = { - defined_only: true, + defined_only: true not_in: [0] }]; }