From b2fce6bd3d7a82fb64f55ffc166f3eab50f1e484 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2020 20:06:03 +0000 Subject: [PATCH] chore: release 0.3.4-SNAPSHOT (#126) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- .github/workflows/auto-release.yaml | 27 ++++++++++--------- google-cloud-bigqueryconnection-bom/pom.xml | 12 ++++----- google-cloud-bigqueryconnection/pom.xml | 4 +-- .../pom.xml | 4 +-- .../pom.xml | 4 +-- pom.xml | 12 ++++----- .../pom.xml | 4 +-- .../pom.xml | 4 +-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++---- 10 files changed, 42 insertions(+), 41 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index d0d532c8..fd5d674c 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -8,42 +8,43 @@ jobs: - uses: actions/github-script@v3.0.0 with: github-token: ${{secrets.GITHUB_TOKEN}} + debug: true script: | // only approve PRs from release-please[bot] - if (context.payload.sender.login != "release-please[bot]") { + if (context.payload.pull_request.user.login !== "release-please[bot]") { return; } // only approve PRs like "chore: release " - if (!context.payload.pull_request.title.startsWith("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) + // 1) it is a SNAPSHOT release (auto-generated post regular release) + // 2) there are dependency updates only + // 3) 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") ) { + console.log( "Not auto-releasing since it is not a dependency-update-only release." ); return; } - // list all open pull requests - const result = github.pulls.list({ + const promise = github.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' }); + const open_pulls = await github.paginate(promise) - const pulls = await github.paginate(result); - - // return if there are open depedency update PRs - if ( pulls !== 'undefined' ) { - for (const pull of pulls) { - if (pull.title.startsWith("deps: update dependency ")) { + if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { + for ( const pull of open_pulls ) { + if ( pull.title.startsWith("deps: update dependency") ) { + console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); return; } } @@ -63,5 +64,5 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, - labels: ["kokoro:force-run", "automerge"] + labels: ['kokoro:force-run', 'automerge'] }); \ No newline at end of file diff --git a/google-cloud-bigqueryconnection-bom/pom.xml b/google-cloud-bigqueryconnection-bom/pom.xml index a8b11329..6727d11a 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.3 + 0.3.4-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index 885c0030..1320de59 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.3 + 0.3.4-SNAPSHOT jar Google Cloud BigQuery Connections https://github.com/googleapis/java-bigqueryconnection @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.3 + 0.3.4-SNAPSHOT google-cloud-bigqueryconnection diff --git a/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml index db2d2cc2..355968f6 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.3 + 0.3.4-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index 3616dcd2..d8968334 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.3 + 0.3.4-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index bea4e95a..974e1f87 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 0.3.3 + 0.3.4-SNAPSHOT Google Cloud BigQuery Connections Parent https://github.com/googleapis/java-bigqueryconnection @@ -70,27 +70,27 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.3.3 + 0.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/proto-google-cloud-bigqueryconnection-v1/pom.xml b/proto-google-cloud-bigqueryconnection-v1/pom.xml index 6ba79b01..96964660 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.3 + 0.3.4-SNAPSHOT proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index f20187ce..ac26c34c 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.3 + 0.3.4-SNAPSHOT proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7caa8031..7347cc96 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigqueryconnection - 0.3.3 + 0.3.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1961d852..854cb686 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -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 +google-cloud-bigqueryconnection:0.3.3:0.3.4-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1:0.3.3:0.3.4-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1:0.3.3:0.3.4-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1beta1:0.3.3:0.3.4-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1beta1:0.3.3:0.3.4-SNAPSHOT \ No newline at end of file