Skip to content

Commit d42784b

Browse files
committed
build: add release-please config, fix owlbot-config
1 parent ab61168 commit d42784b

File tree

10 files changed

+61
-23
lines changed

10 files changed

+61
-23
lines changed

.release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"packages/google-cloud-gkemulticloud": "0.1.2",
1414
"packages/google-cloud-language": "5.1.0",
1515
"packages/google-cloud-oslogin": "4.0.2",
16+
"packages/google-cloud-phishingprotection": "3.0.4",
1617
"packages/google-cloud-redis": "3.1.3",
1718
"packages/google-cloud-resourcemanager": "4.1.1",
1819
"packages/google-cloud-security-publicca": "0.1.1",

packages/google-cloud-phishingprotection/.github/.OwlBot.yaml renamed to packages/google-cloud-phishingprotection/.OwlBot.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
docker:
15-
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
1614

1715
deep-remove-regex:
1816
- /owl-bot-staging
1917

2018
deep-copy-regex:
21-
- source: /google/cloud/phishingprotection/(.*)/.*-nodejs/(.*)
22-
dest: /owl-bot-staging/$1/$2
19+
- source: /google/cloud/phishingprotection/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-cloud-phishingprotection/$1

packages/google-cloud-phishingprotection/.mocharc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-phishingprotection/.prettierrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-phishingprotection/.repo-metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"issue_tracker": "",
77
"release_level": "preview",
88
"language": "nodejs",
9-
"repo": "googleapis/nodejs-phishing-protection",
9+
"repo": "googleapis/google-cloud-node",
1010
"distribution_name": "@google-cloud/phishing-protection",
1111
"api_id": "phishingprotection.googleapis.com",
1212
"requires_billing": true,

packages/google-cloud-phishingprotection/README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[//]: # "To regenerate it, use `python -m synthtool`."
33
<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"/>
44

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

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

1515

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

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

2323
Read more about the client libraries for Cloud APIs, including the older
2424
Google APIs Client Libraries, in [Client Libraries Explained][explained].
@@ -79,11 +79,13 @@ console.info(`reported ${uri} to Phishing Protection API`);
7979

8080
## Samples
8181

82-
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.
82+
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.
8383

8484
| Sample | Source Code | Try it |
8585
| --------------------------- | --------------------------------- | ------ |
86-
| 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) |
86+
| 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) |
87+
| 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) |
88+
| 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) |
8789

8890

8991

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

133135
## Contributing
134136

135-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-phishing-protection/blob/main/CONTRIBUTING.md).
137+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
136138

137139
Please note that this `README.md`, the `samples/README.md`,
138140
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
@@ -144,7 +146,7 @@ to its templates in
144146

145147
Apache Version 2.0
146148

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

149151
[client-docs]: https://cloud.google.com/nodejs/docs/reference/phishing-protection/latest
150152
[product-docs]: https://cloud.google.com/phishing-protection/docs/

packages/google-cloud-phishingprotection/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"docs": "jsdoc -c .jsdoc.js",
5151
"lint": "gts check",
5252
"fix": "gts fix",
53-
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
54-
"system-test": "mocha build/system-test",
53+
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
54+
"system-test": "npm run compile && c8 mocha build/system-test",
5555
"predocs-test": "npm run docs",
5656
"docs-test": "linkinator docs",
5757
"clean": "gts clean",

packages/google-cloud-phishingprotection/samples/README.md

+42-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[//]: # "To regenerate it, use `python -m synthtool`."
33
<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"/>
44

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

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

@@ -12,12 +12,14 @@
1212

1313
* [Before you begin](#before-you-begin)
1414
* [Samples](#samples)
15+
* [Phishing_protection_service_v1_beta1.report_phishing](#phishing_protection_service_v1_beta1.report_phishing)
16+
* [Quickstart](#quickstart)
1517
* [Quickstart](#quickstart)
1618

1719
## Before you begin
1820

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

2224
`cd samples`
2325

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

3032

3133

34+
### Phishing_protection_service_v1_beta1.report_phishing
35+
36+
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).
37+
38+
[![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)
39+
40+
__Usage:__
41+
42+
43+
`node packages/google-cloud-phishingprotection/samples/generated/v1beta1/phishing_protection_service_v1_beta1.report_phishing.js`
44+
45+
46+
-----
47+
48+
49+
50+
51+
### Quickstart
52+
53+
View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-phishingprotection/samples/quickstart.js).
54+
55+
[![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)
56+
57+
__Usage:__
58+
59+
60+
`node packages/google-cloud-phishingprotection/samples/quickstart.js`
61+
62+
63+
-----
64+
65+
66+
67+
3268
### Quickstart
3369

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

36-
[![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)
72+
[![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)
3773

3874
__Usage:__
3975

4076

41-
`node samples/quickstart.js`
77+
`node packages/google-cloud-phishingprotection/samples/test/quickstart.js`
4278

4379

4480

4581

4682

4783

4884
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
49-
[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
85+
[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
5086
[product-docs]: https://cloud.google.com/phishing-protection/docs/

packages/google-cloud-phishingprotection/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

release-please-config.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"packages/google-cloud-gkemulticloud": {},
1414
"packages/google-cloud-language": {},
1515
"packages/google-cloud-oslogin": {},
16+
"packages/google-cloud-phishingprotection": {},
1617
"packages/google-cloud-redis": {},
1718
"packages/google-cloud-resourcemanager": {},
1819
"packages/google-cloud-security-publicca": {},

0 commit comments

Comments
 (0)