diff --git a/.releaserc b/.releaserc index ecb05496..0ac09f43 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,6 @@ { "debug": true, + "branches": [ "main" ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", diff --git a/.travis.yml b/.travis.yml index 1c778d12..55d27f7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,4 +40,4 @@ deploy: script: npx semantic-release skip_cleanup: true on: - branch: master + branch: main diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3aa52eeb..c7b5d5c1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,4 +10,4 @@ Before that, please search for similar issues. It's possible that someone has al # General Information For general guidance on contributing to this project, please see -[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/CONTRIBUTING_go.md) +[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/CONTRIBUTING_go.md) diff --git a/README.md b/README.md index af3421f8..100028e3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -[![Build Status](https://travis-ci.com/IBM/platform-services-go-sdk.svg?branch=master)](https://travis-ci.com/IBM/platform-services-go-sdk) +[![Build Status](https://travis-ci.com/IBM/platform-services-go-sdk.svg?branch=main)](https://travis-ci.com/IBM/platform-services-go-sdk) [![Release](https://img.shields.io/github/v/release/IBM/platform-services-go-sdk)](https://github.com/IBM/platform-services-go-sdk/releases/latest) [![Go Reference](https://pkg.go.dev/badge/github.com/IBM/platform-services-go-sdk.svg)](https://pkg.go.dev/github.com/IBM/platform-services-go-sdk) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/IBM/platform-services-go-sdk) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![codecov](https://codecov.io/gh/IBM/platform-services-go-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM/platform-services-go-sdk) +[![codecov](https://codecov.io/gh/IBM/platform-services-go-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/IBM/platform-services-go-sdk) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![CLA assistant](https://cla-assistant.io/readme/badge/ibm/platform-services-go-sdk)](https://cla-assistant.io/ibm/platform-services-go-sdk) @@ -121,7 +121,7 @@ then run `dep ensure`. ## Using the SDK For general SDK usage information, please see -[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) +[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md) ## Questions diff --git a/build/publishCodeCoverage.sh b/build/publishCodeCoverage.sh index a8b3f7f3..8a183dc9 100755 --- a/build/publishCodeCoverage.sh +++ b/build/publishCodeCoverage.sh @@ -3,7 +3,7 @@ # This script will publish code coverage info for a build of the master branch # or a tagged release. -if [[ -n "${TRAVIS_TAG}" || "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then +if [[ -n "${TRAVIS_TAG}" || "${TRAVIS_BRANCH}" == "main" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then printf ">>>>> Publishing code coverage info for branch: %s\n" ${TRAVIS_BRANCH} $HOME/codecov-bash.sh -f coverage.txt -t $CODECOV_TOKEN else