From 5605f38f153e7627ba4441a2c5181060b664d224 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 9 Aug 2021 12:14:49 -0400 Subject: [PATCH] docs(nodejs): move branch references to main (#1174) --- .../templates/node_library/.github/generated-files-bot.yml | 4 ++-- .../node_library/.kokoro/continuous/node10/common.cfg | 2 +- .../node_library/.kokoro/continuous/node10/test.cfg | 2 +- .../node_library/.kokoro/presubmit/node10/common.cfg | 2 +- .../gcp/templates/node_library/.kokoro/samples-test.sh | 2 +- synthtool/gcp/templates/node_library/.kokoro/system-test.sh | 2 +- synthtool/gcp/templates/node_library/.kokoro/test.sh | 2 +- synthtool/gcp/templates/node_library/README.md | 6 +++--- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/synthtool/gcp/templates/node_library/.github/generated-files-bot.yml b/synthtool/gcp/templates/node_library/.github/generated-files-bot.yml index 7bb7ce54c..faee06fef 100644 --- a/synthtool/gcp/templates/node_library/.github/generated-files-bot.yml +++ b/synthtool/gcp/templates/node_library/.github/generated-files-bot.yml @@ -8,9 +8,9 @@ generatedFiles: - path: '.github/generated-files-bot.+(yml|yaml)' message: '`.github/generated-files-bot.(yml|yaml)` should be updated in [`synthtool`](https://github.com/googleapis/synthtool)' - path: 'README.md' - message: '`README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml' + message: '`README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/{{ metadata['repo']['default_branch'] }}/.readme-partials.yaml' - path: 'samples/README.md' - message: '`samples/README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml' + message: '`samples/README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/{{ metadata['repo']['default_branch'] }}/.readme-partials.yaml' ignoreAuthors: - 'gcf-owl-bot[bot]' - 'yoshi-automation' diff --git a/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/common.cfg b/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/common.cfg index b4040a16e..a27b03619 100644 --- a/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/common.cfg +++ b/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/common.cfg @@ -7,7 +7,7 @@ action { } } -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/test.cfg b/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/test.cfg index 468b8c719..609c0cf0a 100644 --- a/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/test.cfg +++ b/synthtool/gcp/templates/node_library/.kokoro/continuous/node10/test.cfg @@ -1,4 +1,4 @@ -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/synthtool/gcp/templates/node_library/.kokoro/presubmit/node10/common.cfg b/synthtool/gcp/templates/node_library/.kokoro/presubmit/node10/common.cfg index b4040a16e..a27b03619 100644 --- a/synthtool/gcp/templates/node_library/.kokoro/presubmit/node10/common.cfg +++ b/synthtool/gcp/templates/node_library/.kokoro/presubmit/node10/common.cfg @@ -7,7 +7,7 @@ action { } } -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh b/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh index 22fba7a45..3611785bc 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh @@ -39,7 +39,7 @@ if [ -f samples/package.json ]; then npm link ../ npm install cd .. - # If tests are running against master, configure flakybot + # If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/synthtool/gcp/templates/node_library/.kokoro/system-test.sh b/synthtool/gcp/templates/node_library/.kokoro/system-test.sh index 95f7613a6..d1e020ce0 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/system-test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/system-test.sh @@ -33,7 +33,7 @@ fi npm install -# If tests are running against master, configure flakybot +# If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/synthtool/gcp/templates/node_library/.kokoro/test.sh b/synthtool/gcp/templates/node_library/.kokoro/test.sh index b5646aeb6..af1ce7e33 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/test.sh @@ -21,7 +21,7 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global cd $(dirname $0)/.. npm install -# If tests are running against master, configure flakybot +# If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/synthtool/gcp/templates/node_library/README.md b/synthtool/gcp/templates/node_library/README.md index 9f46e27b3..6aa585d4d 100644 --- a/synthtool/gcp/templates/node_library/README.md +++ b/synthtool/gcp/templates/node_library/README.md @@ -10,7 +10,7 @@ {{ metadata['repo']['release_level']|release_quality_badge }} [![npm version](https://img.shields.io/npm/v/{{ metadata['name'] }}.svg)](https://www.npmjs.org/package/{{ metadata['name'] }}) -[![codecov](https://img.shields.io/codecov/c/github/{{ metadata['repo']['repo'] }}/master.svg?style=flat)](https://codecov.io/gh/{{ metadata['repo']['repo'] }}) +[![codecov](https://img.shields.io/codecov/c/github/{{ metadata['repo']['repo'] }}/{{metadata['repo']['default_branch']}}.svg?style=flat)](https://codecov.io/gh/{{ metadata['repo']['repo'] }}) {% if metadata['deprecated'] %} | :warning: Deprecated Module | @@ -146,8 +146,8 @@ Contributions welcome! See the [Contributing Guide](https://github.com/{{ metada Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) are generated from a central template. To edit one of these files, make an edit -to its template in this -[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). +to its templates in +[directory](https://github.com/googleapis/synthtool). ## License