diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml new file mode 100644 index 00000000..7c2cdc02 --- /dev/null +++ b/.github/workflows/auto-release.yaml @@ -0,0 +1,64 @@ +on: + pull_request: +name: auto-release +jobs: + approve: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v3.0.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + // only approve PRs from release-please[bot] + if (context.payload.sender.login != "release-please[bot]") { + return; + } + + // only approve PRs like "chore: release " + if (!context.payload.pull_request.title.startsWith("chore: release")) { + return; + } + + // trigger auto-release when + // 1) there are dependency updates only + // 2) there are no open dependency update PRs in this repo (to avoid multiple releases) + if ( + context.payload.pull_request.body.includes("Fix") || + context.payload.pull_request.body.includes("Build") || + context.payload.pull_request.body.includes("BREAKING CHANGES") || + context.payload.pull_request.body.includes("Features") + ) { + return; + } + + // list all open pull requests + const result = github.pulls.list({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open' + }); + const pulls = await github.paginate(result); + + // return if there are open depedency update PRs + for (const pull of pulls) { + if (pull.title.startWith("deps: update dependency ")) { + return; + } + } + + // approve release PR + await github.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Rubber stamped release!', + pull_number: context.payload.pull_request.number, + event: 'APPROVE' + }); + + // attach kokoro:force-run and automerge labels + await github.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + labels: ["kokoro:force-run", "automerge"] + }); \ No newline at end of file diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml new file mode 100644 index 00000000..a1d50073 --- /dev/null +++ b/.github/workflows/samples.yaml @@ -0,0 +1,14 @@ +on: + pull_request: +name: samples +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Run checkstyle + run: mvn -P lint --quiet --batch-mode checkstyle:check + working-directory: samples/snippets diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg index ed1cc108..730b0617 100644 --- a/.kokoro/release/stage.cfg +++ b/.kokoro/release/stage.cfg @@ -13,32 +13,7 @@ action { } } -# Fetch the token needed for reporting release status to GitHub -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "yoshi-automation-github-key" - } - } -} - -# Fetch magictoken to use with Magic Github Proxy -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "releasetool-magictoken" - } - } -} - -# Fetch api key to use with Magic Github Proxy -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "magic-github-proxy-api-key" - } - } +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ecb9868..726f0bc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.3.3](https://www.github.com/googleapis/java-bigqueryconnection/compare/v0.3.2...v0.3.3) (2020-08-31) + + +### Bug Fixes + +* temporarily disable reporting to unblock releases ([#114](https://www.github.com/googleapis/java-bigqueryconnection/issues/114)) ([97512a8](https://www.github.com/googleapis/java-bigqueryconnection/commit/97512a8abe23ea40206ab835a17602436c8b9ccf)) + ### [0.3.2](https://www.github.com/googleapis/java-bigqueryconnection/compare/v0.3.1...v0.3.2) (2020-08-07) diff --git a/README.md b/README.md index 886d3b7d..e5c1941f 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigqueryconnection:0.3.2' +compile 'com.google.cloud:google-cloud-bigqueryconnection:0.3.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "0.3.2" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "0.3.3" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-bigqueryconnection-bom/pom.xml b/google-cloud-bigqueryconnection-bom/pom.xml index 489a2d4a..a8b11329 100644 --- a/google-cloud-bigqueryconnection-bom/pom.xml +++ b/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 0.3.2 + 0.3.3 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.2 + 0.3.3 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index 5cd35e87..885c0030 100644 --- a/google-cloud-bigqueryconnection/pom.xml +++ b/google-cloud-bigqueryconnection/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 0.3.2 + 0.3.3 jar Google Cloud BigQuery Connections https://github.com/googleapis/java-bigqueryconnection @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.2 + 0.3.3 google-cloud-bigqueryconnection diff --git a/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 741865e1..db2d2cc2 100644 --- a/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.2 + 0.3.3 diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index 0466276b..3616dcd2 100644 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.2 + 0.3.3 diff --git a/pom.xml b/pom.xml index 9b9340ae..bea4e95a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 0.3.2 + 0.3.3 Google Cloud BigQuery Connections Parent https://github.com/googleapis/java-bigqueryconnection @@ -70,27 +70,27 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.2 + 0.3.3 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 diff --git a/proto-google-cloud-bigqueryconnection-v1/pom.xml b/proto-google-cloud-bigqueryconnection-v1/pom.xml index d0767710..6ba79b01 100644 --- a/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 0.3.2 + 0.3.3 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.2 + 0.3.3 diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index 2f391775..f20187ce 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.3.2 + 0.3.3 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.2 + 0.3.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 14329f62..7caa8031 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.2 + 0.3.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9faba04a..13ae0dcc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 8.1.0 + 9.1.0 pom import diff --git a/synth.metadata b/synth.metadata index e53fc62f..b0645f70 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-bigqueryconnection.git", - "sha": "a2ce5c715265dc0fc60f48d96359e4cb5b4156d5" + "sha": "97512a8abe23ea40206ab835a17602436c8b9ccf" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f8823dec98277a9516f2fb6fae9f58b3a59a23e1" + "sha": "019c7168faa0e56619f792693a8acdb30d6de19b" } } ], @@ -60,6 +60,7 @@ ".github/release-please.yml", ".github/trusted-contribution.yml", ".github/workflows/ci.yaml", + ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", ".kokoro/coerce_logs.sh", diff --git a/versions.txt b/versions.txt index ae4182e5..1961d852 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-bigqueryconnection:0.3.2:0.3.2 -proto-google-cloud-bigqueryconnection-v1:0.3.2:0.3.2 -grpc-google-cloud-bigqueryconnection-v1:0.3.2:0.3.2 -proto-google-cloud-bigqueryconnection-v1beta1:0.3.2:0.3.2 -grpc-google-cloud-bigqueryconnection-v1beta1:0.3.2:0.3.2 \ No newline at end of file +google-cloud-bigqueryconnection:0.3.3:0.3.3 +proto-google-cloud-bigqueryconnection-v1:0.3.3:0.3.3 +grpc-google-cloud-bigqueryconnection-v1:0.3.3:0.3.3 +proto-google-cloud-bigqueryconnection-v1beta1:0.3.3:0.3.3 +grpc-google-cloud-bigqueryconnection-v1beta1:0.3.3:0.3.3 \ No newline at end of file