diff --git a/.github/readme/synth.py b/.github/readme/synth.py
new file mode 100644
index 00000000..7b48cc28
--- /dev/null
+++ b/.github/readme/synth.py
@@ -0,0 +1,19 @@
+# Copyright 2020 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""This script is used to synthesize generated the README for this library."""
+
+from synthtool.languages import java
+
+java.custom_templates(["java_library/README.md"])
diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml
new file mode 100644
index 00000000..6bddd18e
--- /dev/null
+++ b/.github/sync-repo-settings.yaml
@@ -0,0 +1,49 @@
+
+# Whether or not rebase-merging is enabled on this repository.
+# Defaults to `true`
+rebaseMergeAllowed: false
+
+# Whether or not squash-merging is enabled on this repository.
+# Defaults to `true`
+squashMergeAllowed: true
+
+# Whether or not PRs are merged with a merge commit on this repository.
+# Defaults to `false`
+mergeCommitAllowed: false
+
+# Rules for master branch protection
+branchProtectionRules:
+# Identifies the protection rule pattern. Name of the branch to be protected.
+# Defaults to `master`
+- pattern: master
+ # Can admins overwrite branch protection.
+ # Defaults to `true`
+ isAdminEnforced: true
+ # Number of approving reviews required to update matching branches.
+ # Defaults to `1`
+ requiredApprovingReviewCount: 1
+ # Are reviews from code owners required to update matching branches.
+ # Defaults to `false`
+ requiresCodeOwnerReviews: true
+ # Require up to date branches
+ requiresStrictStatusChecks: false
+ # List of required status check contexts that must pass for commits to be accepted to matching branches.
+ requiredStatusCheckContexts:
+ - "dependencies (8)"
+ - "dependencies (11)"
+ - "linkage-monitor"
+ - "lint"
+ - "clirr"
+ - "units (7)"
+ - "units (8)"
+ - "units (11)"
+ - "Kokoro - Test: Integration"
+ - "cla/google"
+# List of explicit permissions to add (additive only)
+permissionRules:
+- team: yoshi-admins
+ permission: admin
+- team: yoshi-java-admins
+ permission: admin
+- team: yoshi-java
+ permission: push
\ No newline at end of file
diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml
index d26427e4..bc1554ae 100644
--- a/.github/workflows/auto-release.yaml
+++ b/.github/workflows/auto-release.yaml
@@ -4,10 +4,11 @@ name: auto-release
jobs:
approve:
runs-on: ubuntu-latest
+ if: contains(github.head_ref, 'release-v')
steps:
- uses: actions/github-script@v3.0.0
with:
- github-token: ${{secrets.GITHUB_TOKEN}}
+ github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
script: |
// only approve PRs from release-please[bot]
@@ -20,6 +21,24 @@ jobs:
return;
}
+ // only approve PRs with pom.xml and versions.txt changes
+ const filesPromise = github.pulls.listFiles.endpoint({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ pull_number: context.payload.pull_request.number,
+ });
+ const changed_files = await github.paginate(filesPromise)
+
+ if ( changed_files.length < 1 ) {
+ console.log( "Not proceeding since PR is empty!" )
+ return;
+ }
+
+ if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) {
+ console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" )
+ return;
+ }
+
// trigger auto-release when
// 1) it is a SNAPSHOT release (auto-generated post regular release)
// 2) there are dependency updates only
@@ -66,4 +85,4 @@ jobs:
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
index a1d50073..c46230a7 100644
--- a/.github/workflows/samples.yaml
+++ b/.github/workflows/samples.yaml
@@ -2,7 +2,7 @@ on:
pull_request:
name: samples
jobs:
- lint:
+ checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
diff --git a/.kokoro/continuous/readme.cfg b/.kokoro/continuous/readme.cfg
new file mode 100644
index 00000000..0ecd99ea
--- /dev/null
+++ b/.kokoro/continuous/readme.cfg
@@ -0,0 +1,55 @@
+# Copyright 2020 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Format: //devtools/kokoro/config/proto/build.proto
+
+env_vars: {
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
+}
+
+env_vars: {
+ key: "TRAMPOLINE_BUILD_FILE"
+ value: "github/java-bigqueryreservation/.kokoro/readme.sh"
+}
+
+# Build logs will be here
+action {
+ define_artifacts {
+ regex: "**/*sponge_log.xml"
+ regex: "**/*sponge_log.log"
+ }
+}
+
+# The github token is stored here.
+before_action {
+ fetch_keystore {
+ keystore_resource {
+ keystore_config_id: 73713
+ keyname: "yoshi-automation-github-key"
+ # TODO(theacodes): remove this after secrets have globally propagated
+ backend_type: FASTCONFIGPUSH
+ }
+ }
+}
+
+# Common env vars for all repositories and builds.
+env_vars: {
+ key: "GITHUB_USER"
+ value: "yoshi-automation"
+}
+env_vars: {
+ key: "GITHUB_EMAIL"
+ value: "yoshi-automation@google.com"
+}
diff --git a/.kokoro/readme.sh b/.kokoro/readme.sh
new file mode 100644
index 00000000..b4b0b2e6
--- /dev/null
+++ b/.kokoro/readme.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+# Copyright 2020 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+set -eo pipefail
+
+cd ${KOKORO_ARTIFACTS_DIR}/github/java-bigqueryreservation
+
+# Disable buffering, so that the logs stream through.
+export PYTHONUNBUFFERED=1
+
+# Kokoro exposes this as a file, but the scripts expect just a plain variable.
+export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key)
+
+# Setup git credentials
+echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
+git config --global credential.helper 'store --file ~/.git-credentials'
+
+python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool
+python3.6 -m autosynth.synth \
+ --repository=googleapis/java-bigqueryreservation \
+ --synth-file-name=.github/readme/synth.py \
+ --metadata-path=.github/readme/synth.metadata \
+ --pr-title="chore: regenerate README" \
+ --branch-suffix="readme"
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6347ca7e..bf77c705 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+### [0.3.7](https://www.github.com/googleapis/java-bigqueryreservation/compare/v0.3.6...v0.3.7) (2020-10-06)
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.1 ([#176](https://www.github.com/googleapis/java-bigqueryreservation/issues/176)) ([fc6e906](https://www.github.com/googleapis/java-bigqueryreservation/commit/fc6e906b5dca7c807aba8671f252453ddf237058))
+
### [0.3.6](https://www.github.com/googleapis/java-bigqueryreservation/compare/v0.3.5...v0.3.6) (2020-09-23)
diff --git a/README.md b/README.md
index 09fb27f2..830a65d6 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven, add this to your pom.xml file:
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.5
+ 0.3.6
```
@@ -28,11 +28,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-bigqueryreservation:0.3.6'
+compile 'com.google.cloud:google-cloud-bigqueryreservation:0.3.7'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "0.3.6"
+libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "0.3.7"
```
[//]: # ({x-version-update-end})
diff --git a/google-cloud-bigqueryreservation-bom/pom.xml b/google-cloud-bigqueryreservation-bom/pom.xml
index dd79128b..f4a88418 100644
--- a/google-cloud-bigqueryreservation-bom/pom.xml
+++ b/google-cloud-bigqueryreservation-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigqueryreservation-bom
- 0.3.6
+ 0.3.7
pom
com.google.cloud
@@ -64,17 +64,17 @@
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.6
+ 0.3.7
com.google.api.grpc
proto-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
com.google.api.grpc
grpc-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
diff --git a/google-cloud-bigqueryreservation/pom.xml b/google-cloud-bigqueryreservation/pom.xml
index e2be7c34..044360fb 100644
--- a/google-cloud-bigqueryreservation/pom.xml
+++ b/google-cloud-bigqueryreservation/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.6
+ 0.3.7
jar
Google Cloud BigQuery Reservations
https://github.com/googleapis/java-bigqueryreservation
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-bigqueryreservation-parent
- 0.3.6
+ 0.3.7
google-cloud-bigqueryreservation
diff --git a/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/grpc-google-cloud-bigqueryreservation-v1/pom.xml
index 62299070..e431fd8e 100644
--- a/grpc-google-cloud-bigqueryreservation-v1/pom.xml
+++ b/grpc-google-cloud-bigqueryreservation-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
grpc-google-cloud-bigqueryreservation-v1
GRPC library for grpc-google-cloud-bigqueryreservation-v1
com.google.cloud
google-cloud-bigqueryreservation-parent
- 0.3.6
+ 0.3.7
diff --git a/pom.xml b/pom.xml
index d116dc0e..e22d5c87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigqueryreservation-parent
pom
- 0.3.6
+ 0.3.7
Google Cloud BigQuery Reservations Parent
https://github.com/googleapis/java-bigqueryreservation
@@ -70,23 +70,23 @@
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.6
+ 0.3.7
com.google.api.grpc
proto-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
com.google.api.grpc
grpc-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
com.google.cloud
google-cloud-shared-dependencies
- 0.10.0
+ 0.10.1
pom
import
diff --git a/proto-google-cloud-bigqueryreservation-v1/pom.xml b/proto-google-cloud-bigqueryreservation-v1/pom.xml
index 72468893..53e9bd36 100644
--- a/proto-google-cloud-bigqueryreservation-v1/pom.xml
+++ b/proto-google-cloud-bigqueryreservation-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-bigqueryreservation-v1
- 0.3.6
+ 0.3.7
proto-google-cloud-bigqueryreservation-v1
PROTO library for proto-google-cloud-bigqueryreservation-v1
com.google.cloud
google-cloud-bigqueryreservation-parent
- 0.3.6
+ 0.3.7
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 44fd117c..b4727fe5 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud.samples
shared-configuration
- 1.0.18
+ 1.0.21
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.5
+ 0.3.6
diff --git a/samples/pom.xml b/samples/pom.xml
index 2c5749a8..99b10cc0 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -18,7 +18,7 @@
com.google.cloud.samples
shared-configuration
- 1.0.18
+ 1.0.21
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c1bf0a2d..58fca029 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud.samples
shared-configuration
- 1.0.18
+ 1.0.21
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.5
+ 0.3.6
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 559794c3..f9696299 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud.samples
shared-configuration
- 1.0.18
+ 1.0.21
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 10.1.0
+ 12.0.0
pom
import
@@ -41,7 +41,7 @@
com.google.cloud
google-cloud-bigqueryreservation
- 0.3.5
+ 0.3.6
diff --git a/synth.metadata b/synth.metadata
index d92fd797..dff194b9 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-bigqueryreservation.git",
- "sha": "4042ab3b4603713c5452935beaf3ce877150eb47"
+ "sha": "9373957d02b60fb7aa1b2af662fc6bf782146769"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "80003a3de2d8a75f5b47cb2e77e018f7f0f776cc"
+ "sha": "8a7a3021fe97aa0a3641db642fe2b767f1c8110f"
}
}
],
@@ -40,6 +40,7 @@
".github/ISSUE_TEMPLATE/feature_request.md",
".github/ISSUE_TEMPLATE/support_request.md",
".github/PULL_REQUEST_TEMPLATE.md",
+ ".github/readme/synth.py",
".github/release-please.yml",
".github/trusted-contribution.yml",
".github/workflows/auto-release.yaml",
@@ -52,6 +53,7 @@
".kokoro/common.sh",
".kokoro/continuous/common.cfg",
".kokoro/continuous/java8.cfg",
+ ".kokoro/continuous/readme.cfg",
".kokoro/dependencies.sh",
".kokoro/linkage-monitor.sh",
".kokoro/nightly/common.cfg",
@@ -75,6 +77,7 @@
".kokoro/presubmit/linkage-monitor.cfg",
".kokoro/presubmit/lint.cfg",
".kokoro/presubmit/samples.cfg",
+ ".kokoro/readme.sh",
".kokoro/release/bump_snapshot.cfg",
".kokoro/release/common.cfg",
".kokoro/release/common.sh",
@@ -92,7 +95,6 @@
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE",
- "README.md",
"codecov.yaml",
"google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java",
"google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java",
diff --git a/versions.txt b/versions.txt
index 1973f4e1..96109840 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-bigqueryreservation:0.3.6:0.3.6
-proto-google-cloud-bigqueryreservation-v1:0.3.6:0.3.6
-grpc-google-cloud-bigqueryreservation-v1:0.3.6:0.3.6
\ No newline at end of file
+google-cloud-bigqueryreservation:0.3.7:0.3.7
+proto-google-cloud-bigqueryreservation-v1:0.3.7:0.3.7
+grpc-google-cloud-bigqueryreservation-v1:0.3.7:0.3.7
\ No newline at end of file