Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 189663a

Browse files
build: update README for deprecation notice (#2730)
* build: update README for deprecation notice * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2997d5e commit 189663a

10 files changed

Lines changed: 93 additions & 59 deletions

File tree

.github/release-please.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
handleGHRelease: true
22
releaseType: node
3-
branches:
4-
- handleGHRelease: true
5-
releaseType: node
6-
branch: 4.x

.github/sync-repo-settings.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
branchProtectionRules:
2-
- pattern: 4.x
3-
isAdminEnforced: true
4-
requiredApprovingReviewCount: 1
5-
requiresCodeOwnerReviews: true
6-
requiresStrictStatusChecks: false
72
- pattern: main
83
isAdminEnforced: true
94
requiredApprovingReviewCount: 1
105
requiresCodeOwnerReviews: true
11-
requiresStrictStatusChecks: false
6+
requiresStrictStatusChecks: true
127
requiredStatusCheckContexts:
138
- "ci/kokoro: Samples test"
149
- "ci/kokoro: System test"
@@ -19,3 +14,6 @@ branchProtectionRules:
1914
- cla/google
2015
- windows
2116
- OwlBot Post Processor
17+
permissionRules:
18+
- team: cloud-sdk-nodejs-team
19+
permission: push

.github/workflows/ci.yaml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node: [14, 16, 18]
12+
node: [14, 16, 18, 20]
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-node@v6
1616
with:
1717
node-version: ${{ matrix.node }}
1818
- run: node --version
@@ -26,11 +26,25 @@ jobs:
2626
- run: npm test
2727
env:
2828
MOCHA_THROW_DEPRECATION: false
29+
test-script:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v5
33+
- uses: actions/setup-node@v6
34+
with:
35+
node-version: 18
36+
- run: node --version
37+
- run: npm install --engine-strict
38+
working-directory: .github/scripts
39+
- run: npm test
40+
working-directory: .github/scripts
41+
env:
42+
MOCHA_THROW_DEPRECATION: false
2943
windows:
3044
runs-on: windows-latest
3145
steps:
32-
- uses: actions/checkout@v4
33-
- uses: actions/setup-node@v4
46+
- uses: actions/checkout@v5
47+
- uses: actions/setup-node@v6
3448
with:
3549
node-version: 18
3650
- run: npm install --engine-strict
@@ -40,9 +54,21 @@ jobs:
4054
lint:
4155
runs-on: ubuntu-latest
4256
steps:
43-
- uses: actions/checkout@v4
44-
- uses: actions/setup-node@v4
57+
- uses: actions/checkout@v5
58+
- uses: actions/setup-node@v6
4559
with:
4660
node-version: 18
4761
- run: npm install
4862
- run: npm run lint
63+
docs:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v5
67+
- uses: actions/setup-node@v6
68+
with:
69+
node-version: 18
70+
- run: npm install
71+
- run: npm run docs
72+
- uses: JustinBeckwith/linkinator-action@v1
73+
with:
74+
paths: docs/

.kokoro/release/publish.cfg

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/samples-test.sh

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/system-test.sh

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mocharc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
const config = {
15+
"enable-source-maps": true,
16+
"throw-deprecation": true,
17+
"timeout": 10000,
18+
"recursive": true
19+
}
20+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
21+
delete config['throw-deprecation'];
22+
}
23+
if (process.env.MOCHA_REPORTER) {
24+
config.reporter = process.env.MOCHA_REPORTER;
25+
}
26+
if (process.env.MOCHA_REPORTER_OUTPUT) {
27+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
28+
}
29+
module.exports = config

.prettierrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
module.exports = {
16+
...require('gts/.prettierrc.json')
17+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**_THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO [GOOGLE-CLOUD-NODE](https://github.com/googleapis/google-cloud-node/tree/main/packages/handwritten)_**
2+
13
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
24
[//]: # "To regenerate it, use `python -m synthtool`."
35
<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"/>

owlbot.py

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,17 @@
1-
# Copyright 2019 Google LLC
1+
# Copyright 2022 Google LLC
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# Licensed under the Apache License, Version 2.0 (the License);
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# https://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
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-
15-
import synthtool as s
16-
import synthtool.gcp as gcp
1714
import synthtool.languages.node as node
18-
import logging
19-
20-
logging.basicConfig(level=logging.DEBUG)
21-
22-
common_templates = gcp.CommonTemplates()
23-
templates = common_templates.node_library(source_location='build/src')
24-
s.copy(templates, excludes=['.jsdoc.js',
25-
'.github/release-please.yml',
26-
'.github/sync-repo-settings.yaml',
27-
'.github/workflows/ci.yaml',
28-
'.prettierrc.js',
29-
'.mocharc.js',
30-
'.kokoro/continuous/node14/system-test.cfg',
31-
'.kokoro/presubmit/node14/system-test.cfg',
32-
'.kokoro/release/publish.cfg',
33-
'.kokoro/system-test.sh',
34-
'.kokoro/samples-test.sh',
35-
])
36-
37-
# Create .config directory under $HOME to get around permissions issues
38-
# with resumable upload.
39-
s.replace(
40-
".circleci/config.yml",
41-
"command: npm run system-test",
42-
"command: mkdir $HOME/.config && npm run system-test")
43-
node.fix()
15+
node.owlbot_main(templates_excludes=[
16+
'README.md'
17+
])

0 commit comments

Comments
 (0)