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 Oct 13, 2022
1 parent 0e530f0 commit 362036b
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 23 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"packages/google-cloud-gkemulticloud": "0.1.2",
"packages/google-cloud-language": "5.1.0",
"packages/google-cloud-oslogin": "4.0.2",
"packages/google-cloud-phishingprotection": "3.0.4",
"packages/google-cloud-redis": "3.1.3",
"packages/google-cloud-resourcemanager": "4.1.1",
"packages/google-cloud-security-publicca": "0.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
# 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/cloud/phishingprotection/(.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2
- source: /google/cloud/phishingprotection/(.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-phishingprotection/$1
2 changes: 1 addition & 1 deletion packages/google-cloud-phishingprotection/.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-cloud-phishingprotection/.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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"issue_tracker": "",
"release_level": "preview",
"language": "nodejs",
"repo": "googleapis/nodejs-phishing-protection",
"repo": "googleapis/google-cloud-node",
"distribution_name": "@google-cloud/phishing-protection",
"api_id": "phishingprotection.googleapis.com",
"requires_billing": true,
Expand Down
16 changes: 9 additions & 7 deletions packages/google-cloud-phishingprotection/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"/>

# [Phishing Protection: Node.js Client](https://github.com/googleapis/nodejs-phishing-protection)
# [Phishing Protection: Node.js Client](https://github.com/googleapis/google-cloud-node)

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


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

* [Phishing Protection Node.js Client API Reference][client-docs]
* [Phishing Protection Documentation][product-docs]
* [github.com/googleapis/nodejs-phishing-protection](https://github.com/googleapis/nodejs-phishing-protection)
* [github.com/googleapis/google-cloud-node](https://github.com/googleapis/google-cloud-node)

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 @@ -79,11 +79,13 @@ console.info(`reported ${uri} to Phishing Protection API`);

## Samples

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-phishing-protection/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 |
| --------------------------- | --------------------------------- | ------ |
| Quickstart | [source code](https://github.com/googleapis/nodejs-phishing-protection/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-phishing-protection&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Phishing_protection_service_v1_beta1.report_phishing | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.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=packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/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=packages/google-cloud-phishingprotection/samples/quickstart.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/samples/test/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=packages/google-cloud-phishingprotection/samples/test/quickstart.js,samples/README.md) |



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

## Contributing

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-phishing-protection/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 @@ -144,7 +146,7 @@ to its templates in

Apache Version 2.0

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

[client-docs]: https://cloud.google.com/nodejs/docs/reference/phishing-protection/latest
[product-docs]: https://cloud.google.com/phishing-protection/docs/
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-phishingprotection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"docs": "jsdoc -c .jsdoc.js",
"lint": "gts check",
"fix": "gts fix",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"system-test": "mocha build/system-test",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"system-test": "npm run compile && c8 mocha build/system-test",
"predocs-test": "npm run docs",
"docs-test": "linkinator docs",
"clean": "gts clean",
Expand Down
48 changes: 42 additions & 6 deletions packages/google-cloud-phishingprotection/samples/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"/>

# [Phishing Protection: Node.js Samples](https://github.com/googleapis/nodejs-phishing-protection)
# [Phishing Protection: Node.js Samples](https://github.com/googleapis/google-cloud-node)

[![Open in Cloud Shell][shell_img]][shell_link]

Expand All @@ -12,12 +12,14 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Phishing_protection_service_v1_beta1.report_phishing](#phishing_protection_service_v1_beta1.report_phishing)
* [Quickstart](#quickstart)
* [Quickstart](#quickstart)

## Before you begin

Before running the samples, make sure you've followed the steps outlined in
[Using the client library](https://github.com/googleapis/nodejs-phishing-protection#using-the-client-library).
[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library).

`cd samples`

Expand All @@ -29,22 +31,56 @@ Before running the samples, make sure you've followed the steps outlined in



### Phishing_protection_service_v1_beta1.report_phishing

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.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=packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.js,samples/README.md)

__Usage:__


`node packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/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=packages/google-cloud-phishingprotection/samples/quickstart.js,samples/README.md)

__Usage:__


`node packages/google-cloud-phishingprotection/samples/quickstart.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/nodejs-phishing-protection/blob/main/samples/quickstart.js).
View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/samples/test/quickstart.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-phishing-protection&page=editor&open_in_editor=samples/quickstart.js,samples/README.md)
[![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=packages/google-cloud-phishingprotection/samples/test/quickstart.js,samples/README.md)

__Usage:__


`node samples/quickstart.js`
`node packages/google-cloud-phishingprotection/samples/test/quickstart.js`






[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-phishing-protection&page=editor&open_in_editor=samples/README.md
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md
[product-docs]: https://cloud.google.com/phishing-protection/docs/
2 changes: 1 addition & 1 deletion packages/google-cloud-phishingprotection/src/index.ts
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
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"packages/google-cloud-gkemulticloud": {},
"packages/google-cloud-language": {},
"packages/google-cloud-oslogin": {},
"packages/google-cloud-phishingprotection": {},
"packages/google-cloud-redis": {},
"packages/google-cloud-resourcemanager": {},
"packages/google-cloud-security-publicca": {},
Expand Down

0 comments on commit 362036b

Please sign in to comment.