From fe7b473db74cbf4696ba0561d336332bc31ff224 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Sun, 11 Jul 2021 01:15:39 +0530 Subject: [PATCH 1/8] docs: prettified actions Signed-off-by: Rajiv Ranjan Singh --- .github/workflows/csharp.yml | 32 +++++----- .github/workflows/go.yml | 94 ++++++++++++++--------------- .github/workflows/maven-publish.yml | 27 ++++----- .github/workflows/maven.yml | 19 +++--- .github/workflows/node.js.yml | 68 ++++++++++----------- .github/workflows/php.yml | 38 ++++++------ .github/workflows/pypi.yml | 52 ++++++++-------- 7 files changed, 163 insertions(+), 167 deletions(-) diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index c90bb4f7..2d8194f1 100644 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -1,26 +1,26 @@ name: "csharp" on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build-push: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@master - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2 + - uses: actions/setup-dotnet@master + with: + dotnet-version: 3.1.100 - - name: copy wechaty proto - run: .\copy.ps1 - working-directory: .\csharp\Wechaty.Grpc\buildTool - shell: powershell + - name: copy wechaty proto + run: .\copy.ps1 + working-directory: .\csharp\Wechaty.Grpc\buildTool + shell: powershell - - name: publish on version change - uses: rohith/publish-nuget@v2 - with: - PROJECT_FILE_PATH: .\csharp\Wechaty.Grpc\Wechaty.Grpc.csproj - VERSION_FILE_PATH: .\csharp\Wechaty.Grpc\common.props - NUGET_KEY: ${{ secrets.NUGET_APIKEY }} + - name: publish on version change + uses: rohith/publish-nuget@v2 + with: + PROJECT_FILE_PATH: .\csharp\Wechaty.Grpc\Wechaty.Grpc.csproj + VERSION_FILE_PATH: .\csharp\Wechaty.Grpc\common.props + NUGET_KEY: ${{ secrets.NUGET_APIKEY }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 19f42cbd..4bf8ba72 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,36 +3,34 @@ name: Go on: [push, pull_request] jobs: - build: name: Build runs-on: ubuntu-latest steps: - - - name: Set up Go 1.14 - uses: actions/setup-go@master - with: - stable: false - go-version: 1.14 - id: go - - name: Install Protoc - uses: arduino/setup-protoc@master - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - cd go - make install - - - name: Build - run: | - cd go - make generate - rm -rf `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty - ln -s `pwd`/generated/wechaty/ `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty - go build -v generated/wechaty/puppet.pb.go + - name: Set up Go 1.14 + uses: actions/setup-go@master + with: + stable: false + go-version: 1.14 + id: go + - name: Install Protoc + uses: arduino/setup-protoc@master + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + cd go + make install + + - name: Build + run: | + cd go + make generate + rm -rf `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty + ln -s `pwd`/generated/wechaty/ `go env GOPATH`/src/github.com/wechaty/go-grpc/wechaty + go build -v generated/wechaty/puppet.pb.go publish: if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v')) @@ -40,25 +38,25 @@ jobs: needs: [build] runs-on: ubuntu-latest steps: - - name: Set up Go 1.14 - uses: actions/setup-go@master - with: - stable: false - go-version: 1.14 - id: go - - name: Install Protoc - uses: arduino/setup-protoc@master - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Deploy - run: | - cd go - make install - # https://stackoverflow.com/a/4565746/1123955 - # https://stackoverflow.com/a/46253163/1123955 - ssh-agent bash -c "\ - echo '${SSH_PRIVATE_KEY}' | ssh-add - ;\ - make publish ;\ - " - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Set up Go 1.14 + uses: actions/setup-go@master + with: + stable: false + go-version: 1.14 + id: go + - name: Install Protoc + uses: arduino/setup-protoc@master + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Deploy + run: | + cd go + make install + # https://stackoverflow.com/a/4565746/1123955 + # https://stackoverflow.com/a/46253163/1123955 + ssh-agent bash -c "\ + echo '${SSH_PRIVATE_KEY}' | ssh-add - ;\ + make publish ;\ + " + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 02dccee8..771e8b89 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -9,22 +9,21 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file - - name: Build with Maven - run: mvn -B package --file java/pom.xml + - name: Build with Maven + run: mvn -B package --file java/pom.xml - - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml - env: - GITHUB_TOKEN: ${{ github.token }} + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index db8eb4e7..b5a339f1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,20 +5,19 @@ name: Maven on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn -B package --file java/pom.xml + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file java/pom.xml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9638cf2e..733cc79a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,9 +5,9 @@ name: Node.js on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: @@ -18,35 +18,35 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@master - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@master - with: - node-version: ${{ matrix.node-version }} - - name: Set up Go - uses: actions/setup-go@master - id: go - - - name: Install Protoc - uses: arduino/setup-protoc@master - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/cache@master - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install Dependencies - run: | - npm install - npm run install:protoc - - - name: Generate gRPC Stubs - run: npm run generate - - - name: Test - run: npm test - env: - CI: true + - uses: actions/checkout@master + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@master + with: + node-version: ${{ matrix.node-version }} + - name: Set up Go + uses: actions/setup-go@master + id: go + + - name: Install Protoc + uses: arduino/setup-protoc@master + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/cache@master + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install Dependencies + run: | + npm install + npm run install:protoc + + - name: Generate gRPC Stubs + run: npm run generate + + - name: Test + run: npm test + env: + CI: true diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index aec31ec5..121f2fb0 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -14,27 +14,27 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-20.04] - php-versions: ['7.4'] + php-versions: ["7.4"] env: extensions: xml, opcache, xdebug, pcov, grpc-1.30.0, protobuf-3.12.2 key: cache-v3 steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup PHP with extensions and custom config - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-versions }} - extensions: ${{ env.extensions }} - ini-values: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Shanghai - tools: protoc, grpc_php_plugin - - name: Testing PHP version - run: | - php -v - php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}" - - name: Test grpc_php_plugin and protoc - run: | - protoc --version - cd php - make generate + - name: Checkout + uses: actions/checkout@v2 + - name: Setup PHP with extensions and custom config + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: ${{ env.extensions }} + ini-values: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Shanghai + tools: protoc, grpc_php_plugin + - name: Testing PHP version + run: | + php -v + php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}" + - name: Test grpc_php_plugin and protoc + run: | + protoc --version + cd php + make generate diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index a9c1e53a..dfc740c7 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -11,33 +11,33 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: 3.9 - - uses: actions/cache@master - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: 3.9 + - uses: actions/cache@master + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - - name: Install Protoc - uses: arduino/setup-protoc@master - - name: Install Protoc 3rd party protos - run: scripts/install-protoc.sh + - name: Install Protoc + uses: arduino/setup-protoc@master + - name: Install Protoc 3rd party protos + run: scripts/install-protoc.sh - - name: Install dependencies - run: | - cd python - python -m pip install --upgrade pip - make install - - name: Test - run: | - cd python - make generate - make test + - name: Install dependencies + run: | + cd python + python -m pip install --upgrade pip + make install + - name: Test + run: | + cd python + make generate + make test pack: name: Pack @@ -83,7 +83,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v1 with: - python-version: '3.9' + python-version: "3.9" - uses: actions/cache@master with: path: ~/.cache/pip From 96283beebf9bff16200a78b92e1b5fb072ff8a12 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Sun, 11 Jul 2021 01:16:20 +0530 Subject: [PATCH 2/8] docs: prettified .vscode Signed-off-by: Rajiv Ranjan Singh --- .vscode/settings.json | 47 +++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d2802f65..6f005dbc 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,11 +23,11 @@ "keyword.control.flow.js", // await "keyword.control.conditional.js", // if "keyword.control.loop.js", // for - "keyword.operator.new.js", // new + "keyword.operator.new.js" // new ], "settings": { - "fontStyle": "italic", - }, + "fontStyle": "italic" + } }, { "scope": [ @@ -41,8 +41,8 @@ "entity.name.type.class.js" ], "settings": { - "fontStyle": "", - }, + "fontStyle": "" + } } ] }, @@ -51,38 +51,27 @@ "dist/": true, "doc/": true, "node_modules/": true, - "package/": true, + "package/": true }, "protoc": { "options": [ - "--proto_path=source_relative" // https://github.com/zxh0/vscode-proto3/issues/31#issuecomment-628162495 - ], + "--proto_path=source_relative" // https://github.com/zxh0/vscode-proto3/issues/31#issuecomment-628162495 + ] }, "alignment": { "operatorPadding": "right", - "indentBase": "firstline", - "surroundSpace": { - "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. - "assignment": [1, 1], // The same as above. - "arrow": [1, 1], // The same as above. - "comment": 2, // Special how much space to add between the trailing comment and the code. - // If this value is negative, it means don't align the trailing comment. + "indentBase": "firstline", + "surroundSpace": { + "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. + "assignment": [1, 1], // The same as above. + "arrow": [1, 1], // The same as above. + "comment": 2 // Special how much space to add between the trailing comment and the code. + // If this value is negative, it means don't align the trailing comment. } }, "editor.formatOnSave": false, "python.pythonPath": "python3", - "eslint.validate": [ - "javascript", - "typescript", - ], - "cSpell.words": [ - "PYPI", - "bdist", - "proto", - "sdist", - "setuptools" - ], - "python.linting.pylintEnabled": true, - + "eslint.validate": ["javascript", "typescript"], + "cSpell.words": ["PYPI", "bdist", "proto", "sdist", "setuptools"], + "python.linting.pylintEnabled": true } - From f04fdacdff8512eceeb6c628c0b552e4dcbcf528 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Fri, 10 Sep 2021 22:29:53 +0530 Subject: [PATCH 3/8] formatted Signed-off-by: Rajiv Ranjan Singh --- .github/workflows/csharp.yml | 2 +- .github/workflows/node.js.yml | 2 +- .github/workflows/npm.yml | 6 +++--- .github/workflows/php.yml | 2 +- .github/workflows/pypi.yml | 2 +- .vscode/settings.json | 18 ++++++++++++------ 6 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index 8a6a474e..43045b29 100755 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -1,4 +1,4 @@ -name: "csharp" +name: csharp on: push: branches: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ee0891df..45eaf270 100755 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -30,7 +30,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: "npm" + cache: 'npm' cache-dependency-path: package.json - name: Set up Go uses: actions/setup-go@master diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 80387ce4..82f1a9a9 100755 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 16 - cache: "npm" + cache: 'npm' cache-dependency-path: package.json - name: Set up Go @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 16 - cache: "npm" + cache: 'npm' cache-dependency-path: package.json - name: Set up Go uses: actions/setup-go@master @@ -71,7 +71,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - cache: "npm" + cache: 'npm' cache-dependency-path: package.json - name: Install Protoc uses: arduino/setup-protoc@master diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 121f2fb0..58f290a9 100755 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-20.04] - php-versions: ["7.4"] + php-versions: ['7.4'] env: extensions: xml, opcache, xdebug, pcov, grpc-1.30.0, protobuf-3.12.2 key: cache-v3 diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 7b3ca708..caf4f7c1 100755 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -83,7 +83,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v1 with: - python-version: "3.9" + python-version: '3.9' - uses: actions/cache@master with: path: ~/.cache/pip diff --git a/.vscode/settings.json b/.vscode/settings.json index f02cd046..9492e125 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -62,11 +62,11 @@ "operatorPadding": "right", "indentBase": "firstline", "surroundSpace": { - "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. - "assignment": [1, 1], // The same as above. - "arrow": [1, 1], // The same as above. - "comment": 2 // Special how much space to add between the trailing comment and the code. - // If this value is negative, it means don't align the trailing comment. + "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. + "assignment": [1, 1], // The same as above. + "arrow": [1, 1], // The same as above. + "comment": 2 // Special how much space to add between the trailing comment and the code. + // If this value is negative, it means don't align the trailing comment. } }, "editor.formatOnSave": false, @@ -75,6 +75,12 @@ "javascript", "typescript", ], - "cSpell.words": ["PYPI", "bdist", "proto", "sdist", "setuptools"], + "cSpell.words": [ + "PYPI", + "bdist", + "proto", + "sdist", + "setuptools", + ], "python.linting.pylintEnabled": true } From eee9e2d2ca67b861807c0a21411f347168a3f043 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Fri, 10 Sep 2021 22:30:32 +0530 Subject: [PATCH 4/8] formatted Signed-off-by: Rajiv Ranjan Singh --- .vscode/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9492e125..c7052c35 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -73,14 +73,14 @@ "python.pythonPath": "python3", "eslint.validate": [ "javascript", - "typescript", + "typescript" ], "cSpell.words": [ "PYPI", "bdist", "proto", "sdist", - "setuptools", + "setuptools" ], "python.linting.pylintEnabled": true } From 3496798c3426901ed79cbf10510b65b68b942889 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Sat, 11 Sep 2021 16:40:40 +0530 Subject: [PATCH 5/8] restored proper file permissions --- commonjs/code-root.spec.ts | 0 commonjs/generated.spec.ts | 0 commonjs/puppet.spec.ts | 0 examples/auth/generate.sh | 0 examples/auth/raw-https/generate.sh | 0 go/generate.sh | 0 go/publish.sh | 0 openapi/generate.sh | 0 openapi/install.sh | 0 php/generate.sh | 0 php/publish.sh | 0 python/generate.sh | 0 python/merge-proto.sh | 0 scripts/generate-package-json.sh | 0 scripts/generate-stub.sh | 0 scripts/install-protoc.sh | 0 scripts/npm-pack-testing.sh | 0 scripts/package-publish-config-tag.sh | 0 src/cjs.spec.ts | 0 src/mod.spec.ts | 0 src/openapi.spec.ts | 0 src/package-json.spec.ts | 0 src/proto.spec.ts | 0 tests/integration.spec.ts | 0 tests/nullable.spec.ts | 0 tests/streaming.spec.ts | 0 26 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 commonjs/code-root.spec.ts mode change 100755 => 100644 commonjs/generated.spec.ts mode change 100755 => 100644 commonjs/puppet.spec.ts mode change 100755 => 100644 examples/auth/generate.sh mode change 100755 => 100644 examples/auth/raw-https/generate.sh mode change 100755 => 100644 go/generate.sh mode change 100755 => 100644 go/publish.sh mode change 100755 => 100644 openapi/generate.sh mode change 100755 => 100644 openapi/install.sh mode change 100755 => 100644 php/generate.sh mode change 100755 => 100644 php/publish.sh mode change 100755 => 100644 python/generate.sh mode change 100755 => 100644 python/merge-proto.sh mode change 100755 => 100644 scripts/generate-package-json.sh mode change 100755 => 100644 scripts/generate-stub.sh mode change 100755 => 100644 scripts/install-protoc.sh mode change 100755 => 100644 scripts/npm-pack-testing.sh mode change 100755 => 100644 scripts/package-publish-config-tag.sh mode change 100755 => 100644 src/cjs.spec.ts mode change 100755 => 100644 src/mod.spec.ts mode change 100755 => 100644 src/openapi.spec.ts mode change 100755 => 100644 src/package-json.spec.ts mode change 100755 => 100644 src/proto.spec.ts mode change 100755 => 100644 tests/integration.spec.ts mode change 100755 => 100644 tests/nullable.spec.ts mode change 100755 => 100644 tests/streaming.spec.ts diff --git a/commonjs/code-root.spec.ts b/commonjs/code-root.spec.ts old mode 100755 new mode 100644 diff --git a/commonjs/generated.spec.ts b/commonjs/generated.spec.ts old mode 100755 new mode 100644 diff --git a/commonjs/puppet.spec.ts b/commonjs/puppet.spec.ts old mode 100755 new mode 100644 diff --git a/examples/auth/generate.sh b/examples/auth/generate.sh old mode 100755 new mode 100644 diff --git a/examples/auth/raw-https/generate.sh b/examples/auth/raw-https/generate.sh old mode 100755 new mode 100644 diff --git a/go/generate.sh b/go/generate.sh old mode 100755 new mode 100644 diff --git a/go/publish.sh b/go/publish.sh old mode 100755 new mode 100644 diff --git a/openapi/generate.sh b/openapi/generate.sh old mode 100755 new mode 100644 diff --git a/openapi/install.sh b/openapi/install.sh old mode 100755 new mode 100644 diff --git a/php/generate.sh b/php/generate.sh old mode 100755 new mode 100644 diff --git a/php/publish.sh b/php/publish.sh old mode 100755 new mode 100644 diff --git a/python/generate.sh b/python/generate.sh old mode 100755 new mode 100644 diff --git a/python/merge-proto.sh b/python/merge-proto.sh old mode 100755 new mode 100644 diff --git a/scripts/generate-package-json.sh b/scripts/generate-package-json.sh old mode 100755 new mode 100644 diff --git a/scripts/generate-stub.sh b/scripts/generate-stub.sh old mode 100755 new mode 100644 diff --git a/scripts/install-protoc.sh b/scripts/install-protoc.sh old mode 100755 new mode 100644 diff --git a/scripts/npm-pack-testing.sh b/scripts/npm-pack-testing.sh old mode 100755 new mode 100644 diff --git a/scripts/package-publish-config-tag.sh b/scripts/package-publish-config-tag.sh old mode 100755 new mode 100644 diff --git a/src/cjs.spec.ts b/src/cjs.spec.ts old mode 100755 new mode 100644 diff --git a/src/mod.spec.ts b/src/mod.spec.ts old mode 100755 new mode 100644 diff --git a/src/openapi.spec.ts b/src/openapi.spec.ts old mode 100755 new mode 100644 diff --git a/src/package-json.spec.ts b/src/package-json.spec.ts old mode 100755 new mode 100644 diff --git a/src/proto.spec.ts b/src/proto.spec.ts old mode 100755 new mode 100644 diff --git a/tests/integration.spec.ts b/tests/integration.spec.ts old mode 100755 new mode 100644 diff --git a/tests/nullable.spec.ts b/tests/nullable.spec.ts old mode 100755 new mode 100644 diff --git a/tests/streaming.spec.ts b/tests/streaming.spec.ts old mode 100755 new mode 100644 From fcf672f8054d8bec9ab7230134f601f142e77e18 Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Sat, 11 Sep 2021 16:46:32 +0530 Subject: [PATCH 6/8] revert --- commonjs/code-root.spec.ts | 0 commonjs/generated.spec.ts | 0 commonjs/puppet.spec.ts | 0 examples/auth/generate.sh | 0 examples/auth/raw-https/generate.sh | 0 go/generate.sh | 0 go/publish.sh | 0 openapi/generate.sh | 0 openapi/install.sh | 0 php/generate.sh | 0 php/publish.sh | 0 python/generate.sh | 0 python/merge-proto.sh | 0 scripts/generate-package-json.sh | 0 scripts/generate-stub.sh | 0 scripts/install-protoc.sh | 0 scripts/npm-pack-testing.sh | 0 scripts/package-publish-config-tag.sh | 0 src/cjs.spec.ts | 0 src/mod.spec.ts | 0 src/openapi.spec.ts | 0 src/package-json.spec.ts | 0 src/proto.spec.ts | 0 tests/integration.spec.ts | 0 tests/nullable.spec.ts | 0 tests/streaming.spec.ts | 0 26 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 commonjs/code-root.spec.ts mode change 100644 => 100755 commonjs/generated.spec.ts mode change 100644 => 100755 commonjs/puppet.spec.ts mode change 100644 => 100755 examples/auth/generate.sh mode change 100644 => 100755 examples/auth/raw-https/generate.sh mode change 100644 => 100755 go/generate.sh mode change 100644 => 100755 go/publish.sh mode change 100644 => 100755 openapi/generate.sh mode change 100644 => 100755 openapi/install.sh mode change 100644 => 100755 php/generate.sh mode change 100644 => 100755 php/publish.sh mode change 100644 => 100755 python/generate.sh mode change 100644 => 100755 python/merge-proto.sh mode change 100644 => 100755 scripts/generate-package-json.sh mode change 100644 => 100755 scripts/generate-stub.sh mode change 100644 => 100755 scripts/install-protoc.sh mode change 100644 => 100755 scripts/npm-pack-testing.sh mode change 100644 => 100755 scripts/package-publish-config-tag.sh mode change 100644 => 100755 src/cjs.spec.ts mode change 100644 => 100755 src/mod.spec.ts mode change 100644 => 100755 src/openapi.spec.ts mode change 100644 => 100755 src/package-json.spec.ts mode change 100644 => 100755 src/proto.spec.ts mode change 100644 => 100755 tests/integration.spec.ts mode change 100644 => 100755 tests/nullable.spec.ts mode change 100644 => 100755 tests/streaming.spec.ts diff --git a/commonjs/code-root.spec.ts b/commonjs/code-root.spec.ts old mode 100644 new mode 100755 diff --git a/commonjs/generated.spec.ts b/commonjs/generated.spec.ts old mode 100644 new mode 100755 diff --git a/commonjs/puppet.spec.ts b/commonjs/puppet.spec.ts old mode 100644 new mode 100755 diff --git a/examples/auth/generate.sh b/examples/auth/generate.sh old mode 100644 new mode 100755 diff --git a/examples/auth/raw-https/generate.sh b/examples/auth/raw-https/generate.sh old mode 100644 new mode 100755 diff --git a/go/generate.sh b/go/generate.sh old mode 100644 new mode 100755 diff --git a/go/publish.sh b/go/publish.sh old mode 100644 new mode 100755 diff --git a/openapi/generate.sh b/openapi/generate.sh old mode 100644 new mode 100755 diff --git a/openapi/install.sh b/openapi/install.sh old mode 100644 new mode 100755 diff --git a/php/generate.sh b/php/generate.sh old mode 100644 new mode 100755 diff --git a/php/publish.sh b/php/publish.sh old mode 100644 new mode 100755 diff --git a/python/generate.sh b/python/generate.sh old mode 100644 new mode 100755 diff --git a/python/merge-proto.sh b/python/merge-proto.sh old mode 100644 new mode 100755 diff --git a/scripts/generate-package-json.sh b/scripts/generate-package-json.sh old mode 100644 new mode 100755 diff --git a/scripts/generate-stub.sh b/scripts/generate-stub.sh old mode 100644 new mode 100755 diff --git a/scripts/install-protoc.sh b/scripts/install-protoc.sh old mode 100644 new mode 100755 diff --git a/scripts/npm-pack-testing.sh b/scripts/npm-pack-testing.sh old mode 100644 new mode 100755 diff --git a/scripts/package-publish-config-tag.sh b/scripts/package-publish-config-tag.sh old mode 100644 new mode 100755 diff --git a/src/cjs.spec.ts b/src/cjs.spec.ts old mode 100644 new mode 100755 diff --git a/src/mod.spec.ts b/src/mod.spec.ts old mode 100644 new mode 100755 diff --git a/src/openapi.spec.ts b/src/openapi.spec.ts old mode 100644 new mode 100755 diff --git a/src/package-json.spec.ts b/src/package-json.spec.ts old mode 100644 new mode 100755 diff --git a/src/proto.spec.ts b/src/proto.spec.ts old mode 100644 new mode 100755 diff --git a/tests/integration.spec.ts b/tests/integration.spec.ts old mode 100644 new mode 100755 diff --git a/tests/nullable.spec.ts b/tests/nullable.spec.ts old mode 100644 new mode 100755 diff --git a/tests/streaming.spec.ts b/tests/streaming.spec.ts old mode 100644 new mode 100755 From 5d4ebbbb26a286b9d3da89b283768c32a291c5af Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh Date: Sat, 11 Sep 2021 16:56:40 +0530 Subject: [PATCH 7/8] restored proper file permissions --- .github/workflows/csharp.yml | 0 .github/workflows/go.yml | 0 .github/workflows/maven-publish.yml | 0 .github/workflows/maven.yml | 0 .github/workflows/node.js.yml | 0 .github/workflows/npm.yml | 0 .github/workflows/php.yml | 0 .github/workflows/pypi.yml | 0 8 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 .github/workflows/csharp.yml mode change 100755 => 100644 .github/workflows/go.yml mode change 100755 => 100644 .github/workflows/maven-publish.yml mode change 100755 => 100644 .github/workflows/maven.yml mode change 100755 => 100644 .github/workflows/node.js.yml mode change 100755 => 100644 .github/workflows/npm.yml mode change 100755 => 100644 .github/workflows/php.yml mode change 100755 => 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml old mode 100755 new mode 100644 From 6d6f9721dce4e2d20c5c71e5834bbc4adf6a7ace Mon Sep 17 00:00:00 2001 From: Rajiv Singh Date: Thu, 16 Sep 2021 21:56:09 +0530 Subject: [PATCH 8/8] Update settings.json --- .vscode/settings.json | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c7052c35..76742561 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,11 +23,11 @@ "keyword.control.flow.js", // await "keyword.control.conditional.js", // if "keyword.control.loop.js", // for - "keyword.operator.new.js" // new + "keyword.operator.new.js", // new ], "settings": { - "fontStyle": "italic" - } + "fontStyle": "italic", + }, }, { "scope": [ @@ -41,39 +41,38 @@ "entity.name.type.class.js" ], "settings": { - "fontStyle": "" - } + "fontStyle": "", + }, } ] }, - "files.exclude": { "dist/": true, "doc/": true, "node_modules/": true, - "package/": true + "package/": true, }, "protoc": { "options": [ - "--proto_path=source_relative" // https://github.com/zxh0/vscode-proto3/issues/31#issuecomment-628162495 - ] + "--proto_path=source_relative" // https://github.com/zxh0/vscode-proto3/issues/31#issuecomment-628162495 + ], }, "alignment": { "operatorPadding": "right", - "indentBase": "firstline", - "surroundSpace": { - "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. - "assignment": [1, 1], // The same as above. - "arrow": [1, 1], // The same as above. - "comment": 2 // Special how much space to add between the trailing comment and the code. - // If this value is negative, it means don't align the trailing comment. + "indentBase": "firstline", + "surroundSpace": { + "colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. + "assignment": [1, 1], // The same as above. + "arrow": [1, 1], // The same as above. + "comment": 2, // Special how much space to add between the trailing comment and the code. + // If this value is negative, it means don't align the trailing comment. } }, "editor.formatOnSave": false, "python.pythonPath": "python3", "eslint.validate": [ "javascript", - "typescript" + "typescript", ], "cSpell.words": [ "PYPI", @@ -82,5 +81,5 @@ "sdist", "setuptools" ], - "python.linting.pylintEnabled": true + "python.linting.pylintEnabled": true, }