From fd9ef4b2b062c79db70bd4c92e098283196bedfc Mon Sep 17 00:00:00 2001 From: YumNumm Date: Thu, 18 Jan 2024 22:00:20 +0900 Subject: [PATCH] fix: proto --- .github/workflows/update-proto.yaml | 45 ------------------- .../lib/earthquake_param.pb.dart | 2 +- .../lib/earthquake_param.pbenum.dart | 1 - .../lib/earthquake_param.pbjson.dart | 1 - .../lib/tsunami_param.pb.dart | 2 +- .../lib/tsunami_param.pbenum.dart | 1 - .../lib/tsunami_param.pbjson.dart | 10 ++++- 7 files changed, 10 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/update-proto.yaml diff --git a/.github/workflows/update-proto.yaml b/.github/workflows/update-proto.yaml deleted file mode 100644 index 371f5c8af..000000000 --- a/.github/workflows/update-proto.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: Protocol Buffer Updator - -on: - pull_request: - -jobs: - check-update: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - # /~https://github.com/actions/checkout - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - name: Fetch flutter config - uses: kuhnroyal/flutter-fvm-config-action@v1 - # /~https://github.com/subosito/flutter-action - - name: Set up flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: ${{ env.FLUTTER_VERSION }} - channel: ${{ env.FLUTTER_CHANNEL }} - cache: true - cache-key: ${{ env.FLUTTER_VERSION }}-${{ env.FLUTTER_CHANNEL }} - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler - - name: Install protoc-gen-dart - run: dart pub global activate protoc_plugin - - name: Re-generate code - run: | - cd packages/jma_parameter_types - ./util/update_proto.sh - - # 変更が発生した場合は プルリクエストを作成 - - name: Create pull request - uses: peter-evans/create-pull-request@v4 - with: - delete-branch: true - commit-message: "Auto format" - committer: "GitHub Actions " - base: ${{ github.head_ref }} - branch: "auto-format/${{ github.sha }}" - title: "Auto format - ref: ${{ github.ref_name }}" - body: "Auto format by GitHub Actions on ${{ github.sha }}\nby: ${{github.actor}}" diff --git a/packages/jma_parameter_types/lib/earthquake_param.pb.dart b/packages/jma_parameter_types/lib/earthquake_param.pb.dart index 5a45d963f..d46d7eb48 100644 --- a/packages/jma_parameter_types/lib/earthquake_param.pb.dart +++ b/packages/jma_parameter_types/lib/earthquake_param.pb.dart @@ -4,7 +4,7 @@ // // @dart = 2.12 -// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: annotate_overrides, camel_case_types, comment_references, prefer_constructors_over_static_methods // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/jma_parameter_types/lib/earthquake_param.pbenum.dart b/packages/jma_parameter_types/lib/earthquake_param.pbenum.dart index 9d6c61a04..457e0cbbb 100644 --- a/packages/jma_parameter_types/lib/earthquake_param.pbenum.dart +++ b/packages/jma_parameter_types/lib/earthquake_param.pbenum.dart @@ -8,4 +8,3 @@ // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import - diff --git a/packages/jma_parameter_types/lib/earthquake_param.pbjson.dart b/packages/jma_parameter_types/lib/earthquake_param.pbjson.dart index 999c67206..a2b476c6c 100644 --- a/packages/jma_parameter_types/lib/earthquake_param.pbjson.dart +++ b/packages/jma_parameter_types/lib/earthquake_param.pbjson.dart @@ -74,4 +74,3 @@ final $typed_data.Uint8List earthquakeParameterStationItemDescriptor = $convert. 'Ch5FYXJ0aHF1YWtlUGFyYW1ldGVyU3RhdGlvbkl0ZW0SEgoEY29kZRgBIAEoCVIEY29kZRISCg' 'RuYW1lGAIgASgJUgRuYW1lEhoKCGxhdGl0dWRlGAMgASgBUghsYXRpdHVkZRIcCglsb25naXR1' 'ZGUYBCABKAFSCWxvbmdpdHVkZQ=='); - diff --git a/packages/jma_parameter_types/lib/tsunami_param.pb.dart b/packages/jma_parameter_types/lib/tsunami_param.pb.dart index 42b1e70ec..1c3e5f70a 100644 --- a/packages/jma_parameter_types/lib/tsunami_param.pb.dart +++ b/packages/jma_parameter_types/lib/tsunami_param.pb.dart @@ -4,7 +4,7 @@ // // @dart = 2.12 -// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: annotate_overrides, camel_case_types, comment_references, prefer_constructors_over_static_methods // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/jma_parameter_types/lib/tsunami_param.pbenum.dart b/packages/jma_parameter_types/lib/tsunami_param.pbenum.dart index 368c0e69b..ba9854d11 100644 --- a/packages/jma_parameter_types/lib/tsunami_param.pbenum.dart +++ b/packages/jma_parameter_types/lib/tsunami_param.pbenum.dart @@ -8,4 +8,3 @@ // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import - diff --git a/packages/jma_parameter_types/lib/tsunami_param.pbjson.dart b/packages/jma_parameter_types/lib/tsunami_param.pbjson.dart index d9f687274..09f97b764 100644 --- a/packages/jma_parameter_types/lib/tsunami_param.pbjson.dart +++ b/packages/jma_parameter_types/lib/tsunami_param.pbjson.dart @@ -17,7 +17,14 @@ import 'dart:typed_data' as $typed_data; const TsunamiParameter$json = { '1': 'TsunamiParameter', '2': [ - {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.TsunamiParameterItem', '10': 'items'}, + { + '1': 'items', + '3': 1, + '4': 3, + '5': 11, + '6': '.TsunamiParameterItem', + '10': 'items', + }, ], }; @@ -42,4 +49,3 @@ final $typed_data.Uint8List tsunamiParameterItemDescriptor = $convert.base64Deco 'ChRUc3VuYW1pUGFyYW1ldGVySXRlbRIeCgpwcmVmZWN0dXJlGAEgASgJUgpwcmVmZWN0dXJlEh' 'IKBGNvZGUYAiABKAlSBGNvZGUSGgoIbGF0aXR1ZGUYAyABKAFSCGxhdGl0dWRlEhwKCWxvbmdp' 'dHVkZRgEIAEoAVIJbG9uZ2l0dWRl'); -