Skip to content
Permalink
Browse files
fix(build): set default branch to main (#722)
  • Loading branch information
bcoe committed Sep 10, 2021
1 parent a5a1f82 commit 26b9ba7850d25234e1bfb8035dd5ef7a1108b31c
Showing with 14 additions and 14 deletions.
  1. +2 −2 .github/generated-files-bot.yml
  2. +1 −1 .github/workflows/ci.yaml
  3. +8 −8 README.md
  4. +3 −3 samples/README.md
@@ -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/main/.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/main/.readme-partials.yaml'
ignoreAuthors:
- 'gcf-owl-bot[bot]'
- 'yoshi-automation'
@@ -1,7 +1,7 @@
on:
push:
branches:
- master
- main
pull_request:
name: ci
jobs:
@@ -6,7 +6,7 @@

[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/translate.svg)](https://www.npmjs.org/package/@google-cloud/translate)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-translate/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-translate)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-translate/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-translate)



@@ -19,7 +19,7 @@ API is part of the larger Cloud Machine Learning API family.


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

* [Cloud Translation Node.js Client API Reference][client-docs]
* [Cloud Translation Documentation][product-docs]
@@ -94,13 +94,13 @@ quickStart();

## Samples

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

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Hybrid Glossaries | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/hybridGlossaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/hybridGlossaries.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Translate | [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/translate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/translate.js,samples/README.md) |
| Hybrid Glossaries | [source code](https://github.com/googleapis/nodejs-translate/blob/main/samples/hybridGlossaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/hybridGlossaries.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-translate/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-translate&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Translate | [source code](https://github.com/googleapis/nodejs-translate/blob/main/samples/translate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/translate.js,samples/README.md) |



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

## Contributing

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-translate/blob/master/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-translate/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`)
@@ -161,7 +161,7 @@ to its templates in

Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-translate/blob/master/LICENSE)
See [LICENSE](https://github.com/googleapis/nodejs-translate/blob/main/LICENSE)

[client-docs]: https://cloud.google.com/nodejs/docs/reference/translate/latest
[product-docs]: https://cloud.google.com/translate/docs/
@@ -99,7 +99,7 @@ node v3beta1/translate_list_codes_beta.js "your_project_id"

### Hybrid Glossaries

View the [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/hybridGlossaries.js).
View the [source code](https://github.com/googleapis/nodejs-translate/blob/main/samples/hybridGlossaries.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/hybridGlossaries.js,samples/README.md)

@@ -116,7 +116,7 @@ __Usage:__

### Quickstart

View the [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/quickstart.js).
View the [source code](https://github.com/googleapis/nodejs-translate/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-translate&page=editor&open_in_editor=samples/quickstart.js,samples/README.md)

@@ -133,7 +133,7 @@ __Usage:__

### Translate

View the [source code](https://github.com/googleapis/nodejs-translate/blob/master/samples/translate.js).
View the [source code](https://github.com/googleapis/nodejs-translate/blob/main/samples/translate.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/translate.js,samples/README.md)

0 comments on commit 26b9ba7

Please sign in to comment.