Skip to content

Commit

Permalink
build: add release-please config, fix owlbot-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Nov 11, 2022
1 parent 45019f5 commit b08eb37
Show file tree
Hide file tree
Showing 10 changed files with 359 additions and 33 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"packages/google-cloud-videointelligence": "4.1.1",
"packages/google-container": "4.4.0",
"packages/google-devtools-artifactregistry": "2.0.2",
"packages/google-devtools-cloudbuild": "3.2.0",
"packages/google-iam": "0.2.2",
"packages/google-maps-addressvalidation": "0.1.0",
"packages/google-maps-routing": "0.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
# 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.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/devtools/cloudbuild/(.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2
- source: /google/devtools/cloudbuild/(.*)/.*-nodejs
dest: /owl-bot-staging/google-devtools-cloudbuild/$1

begin-after-commit-hash: 0629d7a32eb96685272de698a1e5f31f030b60c1

2 changes: 1 addition & 1 deletion packages/google-devtools-cloudbuild/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-devtools-cloudbuild/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-devtools-cloudbuild/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"repo": "googleapis/nodejs-cloudbuild",
"repo": "googleapis/google-cloud-node",
"codeowner_team": "@googleapis/aap-dpes",
"requires_billing": true,
"name": "cloudbuild",
Expand Down
33 changes: 25 additions & 8 deletions packages/google-devtools-cloudbuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [Cloud Build: Node.js Client](https://github.com/googleapis/nodejs-cloudbuild)
# [Cloud Build: Node.js Client](https://github.com/googleapis/google-cloud-node)

[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/cloudbuild.svg)](https://www.npmjs.org/package/@google-cloud/cloudbuild)
Expand All @@ -14,11 +14,11 @@ Cloud Build API client for Node.js


A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/nodejs-cloudbuild/blob/main/CHANGELOG.md).
[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild/CHANGELOG.md).

* [Cloud Build Node.js Client API Reference][client-docs]
* [Cloud Build Documentation][product-docs]
* [github.com/googleapis/nodejs-cloudbuild](https://github.com/googleapis/nodejs-cloudbuild)
* [github.com/googleapis/google-cloud-node/packages/google-devtools-cloudbuild](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild)

Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
Expand Down Expand Up @@ -110,12 +110,29 @@ async function quickstart(

## Samples

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloudbuild/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| List Triggers. | [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/listBuildTriggers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/listBuildTriggers.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Cloud_build.approve_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js,samples/README.md) |
| Cloud_build.cancel_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js,samples/README.md) |
| Cloud_build.create_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js,samples/README.md) |
| Cloud_build.create_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js,samples/README.md) |
| Cloud_build.create_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js,samples/README.md) |
| Cloud_build.delete_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js,samples/README.md) |
| Cloud_build.delete_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js,samples/README.md) |
| Cloud_build.get_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js,samples/README.md) |
| Cloud_build.get_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js,samples/README.md) |
| Cloud_build.get_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js,samples/README.md) |
| Cloud_build.list_build_triggers | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js,samples/README.md) |
| Cloud_build.list_builds | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js,samples/README.md) |
| Cloud_build.list_worker_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js,samples/README.md) |
| Cloud_build.receive_trigger_webhook | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js,samples/README.md) |
| Cloud_build.retry_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js,samples/README.md) |
| Cloud_build.run_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js,samples/README.md) |
| Cloud_build.update_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js,samples/README.md) |
| Cloud_build.update_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) |



Expand Down Expand Up @@ -165,7 +182,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]

## Contributing

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloudbuild/blob/main/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).

Please note that this `README.md`, the `samples/README.md`,
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
Expand All @@ -177,7 +194,7 @@ to its templates in

Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-cloudbuild/blob/main/LICENSE)
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)

[client-docs]: https://cloud.google.com/nodejs/docs/reference/cloudbuild/latest
[product-docs]: https://cloud.google.com/cloud-build/docs/
Expand Down
13 changes: 9 additions & 4 deletions packages/google-devtools-cloudbuild/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"repository": "googleapis/nodejs-cloudbuild",
"repository": {
"type": "git",
"directory": "packages/google-devtools-cloudbuild",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"name": "@google-cloud/cloudbuild",
"version": "3.2.0",
"author": "Google LLC",
Expand Down Expand Up @@ -49,8 +53,8 @@
"prepare": "npm run compile-protos && npm run compile",
"pretest": "npm run compile",
"test": "c8 mocha build/test",
"system-test": "c8 mocha --timeout=15000 system-test/*.js build/system-test/*.js",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "npm run compile && c8 mocha build/system-test",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"predocs-test": "npm run docs",
"docs-test": "linkinator docs",
"prelint": "cd samples; npm link ../; npm install",
Expand All @@ -62,5 +66,6 @@
},
"dependencies": {
"google-gax": "^3.5.2"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild"
}
Loading

0 comments on commit b08eb37

Please sign in to comment.